diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2012-08-16 05:36:48 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-20 09:23:14 (GMT) |
commit | fff3321d75b1a18231876a1aceb36eacbbf6221e (patch) | |
tree | ff7d423fae980191ed922038ce5e1d0a05e19fab /include | |
parent | 16f01365fa01150bf3606fe702a80a03ec87953a (diff) | |
download | linux-fsl-qoriq-fff3321d75b1a18231876a1aceb36eacbbf6221e.tar.xz |
packet: Report fanout status via diag engine
Reported value is the same reported by the FANOUT getsockoption, but
unlike it, the absent fanout setup results in absent nlattr, rather
than in nlattr with zero value. This is done so, since zero fanout
report may mean both -- no fanout, and fanout with both id and type zero.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/packet_diag.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/packet_diag.h b/include/linux/packet_diag.h index 34ade82..93f5fa9 100644 --- a/include/linux/packet_diag.h +++ b/include/linux/packet_diag.h @@ -15,6 +15,7 @@ struct packet_diag_req { #define PACKET_SHOW_INFO 0x00000001 /* Basic packet_sk information */ #define PACKET_SHOW_MCLIST 0x00000002 /* A set of packet_diag_mclist-s */ #define PACKET_SHOW_RING_CFG 0x00000004 /* Rings configuration parameters */ +#define PACKET_SHOW_FANOUT 0x00000008 struct packet_diag_msg { __u8 pdiag_family; @@ -30,6 +31,7 @@ enum { PACKET_DIAG_MCLIST, PACKET_DIAG_RX_RING, PACKET_DIAG_TX_RING, + PACKET_DIAG_FANOUT, PACKET_DIAG_MAX, }; |