aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/tx.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2017-03-15 10:39:18 -0700
committerDavid S. Miller <davem@davemloft.net>2017-03-15 15:20:27 -0700
commit2026fecf516bc04df20cb50874957cd8c364fb4e (patch)
tree17dff1ad69ed0f125ff2f93b83b1bcb3908e724b /drivers/net/ethernet/sfc/tx.c
parentnetxen_nic: remove redundant check if retries is zero (diff)
downloadlinux-dev-2026fecf516bc04df20cb50874957cd8c364fb4e.tar.xz
linux-dev-2026fecf516bc04df20cb50874957cd8c364fb4e.zip
mqprio: Change handling of hw u8 to allow for multiple hardware offload modes
This patch is meant to allow for support of multiple hardware offload type for a single device. There is currently no bounds checking for the hw member of the mqprio_qopt structure. This results in us being able to pass values from 1 to 255 with all being treated the same. On retreiving the value it is returned as 1 for anything 1 or greater being set. With this change we are currently adding limited bounds checking by defining an enum and using those values to limit the reported hardware offloads. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/tx.c')
0 files changed, 0 insertions, 0 deletions