aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r--net/packet/af_packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 292304404fda..097a354ec8cd 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1277,7 +1277,7 @@ static unsigned int fanout_demux_hash(struct packet_fanout *f,
1277 struct sk_buff *skb, 1277 struct sk_buff *skb,
1278 unsigned int num) 1278 unsigned int num)
1279{ 1279{
1280 return reciprocal_scale(skb->rxhash, num); 1280 return reciprocal_scale(skb_get_hash(skb), num);
1281} 1281}
1282 1282
1283static unsigned int fanout_demux_lb(struct packet_fanout *f, 1283static unsigned int fanout_demux_lb(struct packet_fanout *f,
@@ -1362,7 +1362,6 @@ static int packet_rcv_fanout(struct sk_buff *skb, struct net_device *dev,
1362 if (!skb) 1362 if (!skb)
1363 return 0; 1363 return 0;
1364 } 1364 }
1365 skb_get_hash(skb);
1366 idx = fanout_demux_hash(f, skb, num); 1365 idx = fanout_demux_hash(f, skb, num);
1367 break; 1366 break;
1368 case PACKET_FANOUT_LB: 1367 case PACKET_FANOUT_LB: