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.
Showing the changes to include/uapi/linux/devlink.h (1 of 3 files). Show all
Unified · Split
| @@ -102,6 +102,13 @@ enum devlink_eswitch_mode { · 101 unmodified lines | ||
| 102 | 102 | DEVLINK_ESWITCH_MODE_SWITCHDEV, |
| 103 | 103 | }; |
| 104 | 104 | |
| 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 | + | |
| 105 | 112 | enum devlink_attr { |
| 106 | 113 | /* don't change the order or add anything between, this is ABI! */ |
| 107 | 114 | DEVLINK_ATTR_UNSPEC, |
| @@ -133,6 +140,7 @@ enum devlink_attr { · 25 unmodified lines | ||
| 133 | 140 | DEVLINK_ATTR_SB_OCC_CUR, /* u32 */ |
| 134 | 141 | DEVLINK_ATTR_SB_OCC_MAX, /* u32 */ |
| 135 | 142 | DEVLINK_ATTR_ESWITCH_MODE, /* u16 */ |
| 143 | + DEVLINK_ATTR_ESWITCH_INLINE_MODE, /* u8 */ | |
| 136 | 144 | |
| 137 | 145 | /* add new attributes above here, update the policy in devlink.c */ |
| 138 | 146 | |