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.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -277,11 +277,25 @@ enum ovs_vport_attr { · 276 unmodified lines | ||
| 277 | 277 | OVS_VPORT_ATTR_PAD, |
| 278 | 278 | OVS_VPORT_ATTR_IFINDEX, |
| 279 | 279 | OVS_VPORT_ATTR_NETNSID, |
| 280 | + OVS_VPORT_ATTR_UPCALL_STATS, | |
| 280 | 281 | __OVS_VPORT_ATTR_MAX |
| 281 | 282 | }; |
| 282 | 283 | |
| 283 | 284 | #define OVS_VPORT_ATTR_MAX (__OVS_VPORT_ATTR_MAX - 1) |
| 284 | 285 | |
| 286 | +/** | |
| 287 | + * enum ovs_vport_upcall_attr - attributes for %OVS_VPORT_UPCALL* commands | |
| 288 | + * @OVS_VPORT_UPCALL_SUCCESS: 64-bit upcall success packets. | |
| 289 | + * @OVS_VPORT_UPCALL_FAIL: 64-bit upcall fail packets. | |
| 290 | + */ | |
| 291 | +enum ovs_vport_upcall_attr { | |
| 292 | + OVS_VPORT_UPCALL_ATTR_SUCCESS, | |
| 293 | + OVS_VPORT_UPCALL_ATTR_FAIL, | |
| 294 | + __OVS_VPORT_UPCALL_ATTR_MAX | |
| 295 | +}; | |
| 296 | + | |
| 297 | +#define OVS_VPORT_UPCALL_ATTR_MAX (__OVS_VPORT_UPCALL_ATTR_MAX - 1) | |
| 298 | + | |
| 285 | 299 | enum { |
| 286 | 300 | OVS_VXLAN_EXT_UNSPEC, |
| 287 | 301 | OVS_VXLAN_EXT_GBP, /* Flag or __u32 */ |