net: openvswitch: Add support to count upcall packets
Add support to count upall packets, when kmod of openvswitch upcall to count the number of packets for upcall succeed and failed, which is a better way to see how many packets upcalled on every interfaces. Signed-off-by: wangchuanlei <wangchuanlei@inspur.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e47877c7aa
commit
1933ea365a
@@ -277,11 +277,25 @@ enum ovs_vport_attr {
|
||||
OVS_VPORT_ATTR_PAD,
|
||||
OVS_VPORT_ATTR_IFINDEX,
|
||||
OVS_VPORT_ATTR_NETNSID,
|
||||
OVS_VPORT_ATTR_UPCALL_STATS,
|
||||
__OVS_VPORT_ATTR_MAX
|
||||
};
|
||||
|
||||
#define OVS_VPORT_ATTR_MAX (__OVS_VPORT_ATTR_MAX - 1)
|
||||
|
||||
/**
|
||||
* enum ovs_vport_upcall_attr - attributes for %OVS_VPORT_UPCALL* commands
|
||||
* @OVS_VPORT_UPCALL_SUCCESS: 64-bit upcall success packets.
|
||||
* @OVS_VPORT_UPCALL_FAIL: 64-bit upcall fail packets.
|
||||
*/
|
||||
enum ovs_vport_upcall_attr {
|
||||
OVS_VPORT_UPCALL_ATTR_SUCCESS,
|
||||
OVS_VPORT_UPCALL_ATTR_FAIL,
|
||||
__OVS_VPORT_UPCALL_ATTR_MAX
|
||||
};
|
||||
|
||||
#define OVS_VPORT_UPCALL_ATTR_MAX (__OVS_VPORT_UPCALL_ATTR_MAX - 1)
|
||||
|
||||
enum {
|
||||
OVS_VXLAN_EXT_UNSPEC,
|
||||
OVS_VXLAN_EXT_GBP, /* Flag or __u32 */
|
||||
|
||||
Reference in New Issue
Block a user