summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2012-08-16 05:34:22 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-08-20 09:23:14 (GMT)
commit16f01365fa01150bf3606fe702a80a03ec87953a (patch)
tree07695d8703bb3b25a97b5ec3a80b5701daeb111d /include
parent5ef5d6c569f80cf716d75fa88e9b5ee72f0986b2 (diff)
downloadlinux-fsl-qoriq-16f01365fa01150bf3606fe702a80a03ec87953a.tar.xz
packet: Report rings cfg via diag engine
One extension bit may result in two nlattrs -- one per ring type. If some ring type is not configured, then the respective nlatts will be empty. The structure reported contains the data, that is given to the corresponding ring setup socket option. 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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/packet_diag.h b/include/linux/packet_diag.h
index ea2e8923..34ade82 100644
--- a/include/linux/packet_diag.h
+++ b/include/linux/packet_diag.h
@@ -14,6 +14,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 */
struct packet_diag_msg {
__u8 pdiag_family;
@@ -27,6 +28,8 @@ struct packet_diag_msg {
enum {
PACKET_DIAG_INFO,
PACKET_DIAG_MCLIST,
+ PACKET_DIAG_RX_RING,
+ PACKET_DIAG_TX_RING,
PACKET_DIAG_MAX,
};
@@ -54,4 +57,14 @@ struct packet_diag_mclist {
__u8 pdmc_addr[MAX_ADDR_LEN];
};
+struct packet_diag_ring {
+ __u32 pdr_block_size;
+ __u32 pdr_block_nr;
+ __u32 pdr_frame_size;
+ __u32 pdr_frame_nr;
+ __u32 pdr_retire_tmo;
+ __u32 pdr_sizeof_priv;
+ __u32 pdr_features;
+};
+
#endif