diff options
author | Sarveshwar Bandi <sarveshwar.bandi@emulex.com> | 2012-07-25 17:29:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-26 04:13:20 -0400 |
commit | c297977ec18deb36b2c0a5ee57101f7ab736ec00 (patch) | |
tree | 33316332b23da987eaa1144d9667d59c161539c7 /drivers/net | |
parent | ee64c0ee5180b3163b89e0d23b22126b5da088b1 (diff) |
be2net: Fix to parse RSS hash from Receive completions correctly.
Wrong pointer variable is being used to parse the rss hash from
receive completions leading to corrupted rss_hash values filled into skb.
Signed-off-by: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 4e81401259f9..c60de89b6669 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c | |||
@@ -1397,7 +1397,7 @@ static void be_parse_rx_compl_v1(struct be_eth_rx_compl *compl, | |||
1397 | rxcp->pkt_type = | 1397 | rxcp->pkt_type = |
1398 | AMAP_GET_BITS(struct amap_eth_rx_compl_v1, cast_enc, compl); | 1398 | AMAP_GET_BITS(struct amap_eth_rx_compl_v1, cast_enc, compl); |
1399 | rxcp->rss_hash = | 1399 | rxcp->rss_hash = |
1400 | AMAP_GET_BITS(struct amap_eth_rx_compl_v1, rsshash, rxcp); | 1400 | AMAP_GET_BITS(struct amap_eth_rx_compl_v1, rsshash, compl); |
1401 | if (rxcp->vlanf) { | 1401 | if (rxcp->vlanf) { |
1402 | rxcp->vtm = AMAP_GET_BITS(struct amap_eth_rx_compl_v1, vtm, | 1402 | rxcp->vtm = AMAP_GET_BITS(struct amap_eth_rx_compl_v1, vtm, |
1403 | compl); | 1403 | compl); |
@@ -1429,7 +1429,7 @@ static void be_parse_rx_compl_v0(struct be_eth_rx_compl *compl, | |||
1429 | rxcp->pkt_type = | 1429 | rxcp->pkt_type = |
1430 | AMAP_GET_BITS(struct amap_eth_rx_compl_v0, cast_enc, compl); | 1430 | AMAP_GET_BITS(struct amap_eth_rx_compl_v0, cast_enc, compl); |
1431 | rxcp->rss_hash = | 1431 | rxcp->rss_hash = |
1432 | AMAP_GET_BITS(struct amap_eth_rx_compl_v0, rsshash, rxcp); | 1432 | AMAP_GET_BITS(struct amap_eth_rx_compl_v0, rsshash, compl); |
1433 | if (rxcp->vlanf) { | 1433 | if (rxcp->vlanf) { |
1434 | rxcp->vtm = AMAP_GET_BITS(struct amap_eth_rx_compl_v0, vtm, | 1434 | rxcp->vtm = AMAP_GET_BITS(struct amap_eth_rx_compl_v0, vtm, |
1435 | compl); | 1435 | compl); |