]> git.baikalelectronics.ru Git - kernel.git/commit
enic: fix UDP rss bits
authorGovindarajulu Varadarajan <gvaradar@cisco.com>
Tue, 5 Jun 2018 17:14:57 +0000 (10:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jun 2018 13:09:09 +0000 (09:09 -0400)
commit6851e44d6216c9610db78b2317bef7eeb537009e
tree9a1056dd055233791d1d2f96cea3205ec57be403
parentc7dd5ce7ac6585cd5068eccab02baaa9c118d54f
enic: fix UDP rss bits

In commit e8c6343a985b ("enic: set UDP rss flag") driver needed to set a
single bit to enable UDP rss. This is changed to two bit. One for UDP
IPv4 and other bit for UDP IPv6. The hardware which supports this is not
released yet. When released, driver should set 2 bit to enable UDP rss for
both IPv4 and IPv6.

Also add spinlock around vnic_dev_capable_rss_hash_type().

Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_ethtool.c
drivers/net/ethernet/cisco/enic/enic_main.c
drivers/net/ethernet/cisco/enic/enic_res.c
drivers/net/ethernet/cisco/enic/vnic_dev.c
drivers/net/ethernet/cisco/enic/vnic_dev.h
drivers/net/ethernet/cisco/enic/vnic_devcmd.h
drivers/net/ethernet/cisco/enic/vnic_nic.h