History

devlink: Add E-Switch inline mode control

Some HWs need the VF driver to put part of the packet headers on the TX descriptor so the e-switch can do proper matching and steering. The supported modes: none, link, network, transport.

Roi Dayan committed 9 years ago

Commit 59bfde01 parent 20a1ea63 files · +61 −19Browse files

Showing the changes to include/uapi/linux/devlink.h (1 of 3 files). Show all

Unified · Split

include/uapi/linux/devlink.h+8−0
@@ -102,6 +102,13 @@ enum devlink_eswitch_mode { · 101 unmodified lines
102102 DEVLINK_ESWITCH_MODE_SWITCHDEV,
103103 };
104104
105+enum devlink_eswitch_inline_mode {
106+ DEVLINK_ESWITCH_INLINE_MODE_NONE,
107+ DEVLINK_ESWITCH_INLINE_MODE_LINK,
108+ DEVLINK_ESWITCH_INLINE_MODE_NETWORK,
109+ DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT,
110+};
111+
105112 enum devlink_attr {
106113 /* don't change the order or add anything between, this is ABI! */
107114 DEVLINK_ATTR_UNSPEC,
@@ -133,6 +140,7 @@ enum devlink_attr { · 25 unmodified lines
133140 DEVLINK_ATTR_SB_OCC_CUR, /* u32 */
134141 DEVLINK_ATTR_SB_OCC_MAX, /* u32 */
135142 DEVLINK_ATTR_ESWITCH_MODE, /* u16 */
143+ DEVLINK_ATTR_ESWITCH_INLINE_MODE, /* u8 */
136144
137145 /* add new attributes above here, update the policy in devlink.c */
138146