Skip to content

Commit 50a3e67

Browse files
tohojoAlexei Starovoitov
authored andcommitted
tools: Add EXPECTED_FD-related definitions in if_link.h
This adds the IFLA_XDP_EXPECTED_FD netlink attribute definition and the XDP_FLAGS_REPLACE flag to if_link.h in tools/include. Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 92234c8 commit 50a3e67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/include/uapi/linux/if_link.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,11 +960,12 @@ enum {
960960
#define XDP_FLAGS_SKB_MODE (1U << 1)
961961
#define XDP_FLAGS_DRV_MODE (1U << 2)
962962
#define XDP_FLAGS_HW_MODE (1U << 3)
963+
#define XDP_FLAGS_REPLACE (1U << 4)
963964
#define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \
964965
XDP_FLAGS_DRV_MODE | \
965966
XDP_FLAGS_HW_MODE)
966967
#define XDP_FLAGS_MASK (XDP_FLAGS_UPDATE_IF_NOEXIST | \
967-
XDP_FLAGS_MODES)
968+
XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
968969

969970
/* These are stored into IFLA_XDP_ATTACHED on dump. */
970971
enum {
@@ -984,6 +985,7 @@ enum {
984985
IFLA_XDP_DRV_PROG_ID,
985986
IFLA_XDP_SKB_PROG_ID,
986987
IFLA_XDP_HW_PROG_ID,
988+
IFLA_XDP_EXPECTED_FD,
987989
__IFLA_XDP_MAX,
988990
};
989991

0 commit comments

Comments
 (0)