diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/packet/af_packet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index df3cbdd585c7..97346162803d 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -88,7 +88,6 @@ | |||
88 | #include <linux/virtio_net.h> | 88 | #include <linux/virtio_net.h> |
89 | #include <linux/errqueue.h> | 89 | #include <linux/errqueue.h> |
90 | #include <linux/net_tstamp.h> | 90 | #include <linux/net_tstamp.h> |
91 | #include <linux/reciprocal_div.h> | ||
92 | #include <linux/percpu.h> | 91 | #include <linux/percpu.h> |
93 | #ifdef CONFIG_INET | 92 | #ifdef CONFIG_INET |
94 | #include <net/inet_common.h> | 93 | #include <net/inet_common.h> |
@@ -1262,7 +1261,7 @@ static unsigned int fanout_demux_hash(struct packet_fanout *f, | |||
1262 | struct sk_buff *skb, | 1261 | struct sk_buff *skb, |
1263 | unsigned int num) | 1262 | unsigned int num) |
1264 | { | 1263 | { |
1265 | return reciprocal_divide(skb->rxhash, num); | 1264 | return reciprocal_scale(skb->rxhash, num); |
1266 | } | 1265 | } |
1267 | 1266 | ||
1268 | static unsigned int fanout_demux_lb(struct packet_fanout *f, | 1267 | static unsigned int fanout_demux_lb(struct packet_fanout *f, |