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
102 DEVLINK_ESWITCH_MODE_SWITCHDEV,102 DEVLINK_ESWITCH_MODE_SWITCHDEV,
103};103};
104 104
105enum 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
105enum devlink_attr {112enum devlink_attr {
106 /* don't change the order or add anything between, this is ABI! */113 /* don't change the order or add anything between, this is ABI! */
107 DEVLINK_ATTR_UNSPEC,114 DEVLINK_ATTR_UNSPEC,
@@ -133,6 +140,7 @@ enum devlink_attr { · 25 unmodified lines
133 DEVLINK_ATTR_SB_OCC_CUR, /* u32 */140 DEVLINK_ATTR_SB_OCC_CUR, /* u32 */
134 DEVLINK_ATTR_SB_OCC_MAX, /* u32 */141 DEVLINK_ATTR_SB_OCC_MAX, /* u32 */
135 DEVLINK_ATTR_ESWITCH_MODE, /* u16 */142 DEVLINK_ATTR_ESWITCH_MODE, /* u16 */
143 DEVLINK_ATTR_ESWITCH_INLINE_MODE, /* u8 */
136 144
137 /* add new attributes above here, update the policy in devlink.c */145 /* add new attributes above here, update the policy in devlink.c */
138 146