In preparation for support of simultaneous driver and hardware XDP support add per-mode attributes. The catch-all IFLA_XDP_PROG_ID will still be reported, but user space can now also access the program ID in a new IFLA_XDP_<mode>_PROG_ID attribute.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -928,6 +928,9 @@ enum { · 927 unmodified lines | |||
| 928 | IFLA_XDP_ATTACHED, | 928 | IFLA_XDP_ATTACHED, |
| 929 | IFLA_XDP_FLAGS, | 929 | IFLA_XDP_FLAGS, |
| 930 | IFLA_XDP_PROG_ID, | 930 | IFLA_XDP_PROG_ID, |
| 931 | IFLA_XDP_DRV_PROG_ID, | ||
| 932 | IFLA_XDP_SKB_PROG_ID, | ||
| 933 | IFLA_XDP_HW_PROG_ID, | ||
| 931 | __IFLA_XDP_MAX, | 934 | __IFLA_XDP_MAX, |
| 932 | }; | 935 | }; |
| 933 | 936 | ||