enic: set skb->hash type properly
authorGovindarajulu Varadarajan <_govind@gmx.com>
Wed, 2 Nov 2016 00:58:50 +0000 (17:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Nov 2016 19:32:53 +0000 (15:32 -0400)
commit17197236d62c44da127be461c63ac5cc2cce1e53
tree1ef9fed744bcc22ce321623bd3d0d79634285096
parentf7a5537cd2a56b5fdd043f89d37d500b6c698422
enic: set skb->hash type properly

Driver sets the skb l4/l3 hash based on NIC_CFG_RSS_HASH_TYPE_*,
which is bit mask. This is wrong. Hw actually provides us enum.
Use CQ_ENET_RQ_DESC_RSS_TYPE_* to set l3 and l4 hash type.

Fixes: bf751ba802fe ("driver/net: enic: record q_number and rss_hash for skb")
Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic.h
drivers/net/ethernet/cisco/enic/enic_main.c