packet: Report rings cfg via diag engine
authorPavel Emelyanov <xemul@parallels.com>
Thu, 16 Aug 2012 05:34:22 +0000 (05:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Aug 2012 09:23:14 +0000 (02:23 -0700)
commit16f01365fa01150bf3606fe702a80a03ec87953a
tree07695d8703bb3b25a97b5ec3a80b5701daeb111d
parent5ef5d6c569f80cf716d75fa88e9b5ee72f0986b2
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>
include/linux/packet_diag.h
net/packet/diag.c