]> git.baikalelectronics.ru Git - kernel.git/commit
af_packet: Add Queue mapping mode to af_packet fanout operation
authorNeil Horman <nhorman@tuxdriver.com>
Wed, 22 Jan 2014 21:01:44 +0000 (16:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2014 01:35:50 +0000 (17:35 -0800)
commit64d20c486f9d1c069c15da87d1afdb96f374f1bc
tree86ad219b1481a17780efec984c314e1b0f6bc87e
parentb9c45035017aa3cc32309f9e78c432c668ecfc7f
af_packet: Add Queue mapping mode to af_packet fanout operation

This patch adds a queue mapping mode to the fanout operation of af_packet
sockets.  This allows user space af_packet users to better filter on flows
ingressing and egressing via a specific hardware queue, and avoids the potential
packet reordering that can occur when FANOUT_CPU is being used and irq affinity
varies.

Tested successfully by myself.  applies to net-next

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_packet.h
net/packet/af_packet.c