Commit b408f94d authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller

net: sky2 calls skb_set_hash

Drivers should call skb_set_hash to set the hash and its type
in an skbuff.
Signed-off-by: default avatarTom Herbert <therbert@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d2464c8c
...@@ -2495,7 +2495,7 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2, ...@@ -2495,7 +2495,7 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2,
skb_copy_from_linear_data(re->skb, skb->data, length); skb_copy_from_linear_data(re->skb, skb->data, length);
skb->ip_summed = re->skb->ip_summed; skb->ip_summed = re->skb->ip_summed;
skb->csum = re->skb->csum; skb->csum = re->skb->csum;
skb->rxhash = re->skb->rxhash; skb_copy_hash(skb, re->skb);
skb->vlan_proto = re->skb->vlan_proto; skb->vlan_proto = re->skb->vlan_proto;
skb->vlan_tci = re->skb->vlan_tci; skb->vlan_tci = re->skb->vlan_tci;
...@@ -2503,7 +2503,7 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2, ...@@ -2503,7 +2503,7 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2,
length, PCI_DMA_FROMDEVICE); length, PCI_DMA_FROMDEVICE);
re->skb->vlan_proto = 0; re->skb->vlan_proto = 0;
re->skb->vlan_tci = 0; re->skb->vlan_tci = 0;
re->skb->rxhash = 0; skb_clear_hash(re->skb);
re->skb->ip_summed = CHECKSUM_NONE; re->skb->ip_summed = CHECKSUM_NONE;
skb_put(skb, length); skb_put(skb, length);
} }
...@@ -2723,7 +2723,7 @@ static void sky2_rx_hash(struct sky2_port *sky2, u32 status) ...@@ -2723,7 +2723,7 @@ static void sky2_rx_hash(struct sky2_port *sky2, u32 status)
struct sk_buff *skb; struct sk_buff *skb;
skb = sky2->rx_ring[sky2->rx_next].skb; skb = sky2->rx_ring[sky2->rx_next].skb;
skb->rxhash = le32_to_cpu(status); skb_set_hash(skb, le32_to_cpu(status), PKT_HASH_TYPE_L3);
} }
/* Process status response ring */ /* Process status response ring */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment