diff options
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index bee9bfdc8d05..2e8286b47c28 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -1135,7 +1135,7 @@ static unsigned int fanout_demux_hash(struct packet_fanout *f, | |||
1135 | struct sk_buff *skb, | 1135 | struct sk_buff *skb, |
1136 | unsigned int num) | 1136 | unsigned int num) |
1137 | { | 1137 | { |
1138 | return (((u64)skb->rxhash) * num) >> 32; | 1138 | return reciprocal_divide(skb->rxhash, num); |
1139 | } | 1139 | } |
1140 | 1140 | ||
1141 | static unsigned int fanout_demux_lb(struct packet_fanout *f, | 1141 | static unsigned int fanout_demux_lb(struct packet_fanout *f, |