devlink: Add E-Switch inline mode control
authorRoi Dayan <roid@mellanox.com>
Tue, 22 Nov 2016 21:09:57 +0000 (23:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Nov 2016 21:01:14 +0000 (16:01 -0500)
commit59bfde01fab0c4550778cd53e8d266f1dfddf7b7
treee4e6871edcb77b9651c5141790efe5c018105816
parent20a1ea6747836e841feb1941892b9baa1dbcd0fb
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.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c