aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/enetc/enetc_pf.c
diff options
context:
space:
mode:
authorCamelia Groza <camelia.groza@nxp.com>2019-05-27 18:21:31 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-28 17:11:02 -0700
commitcbe9e835946fc792b061d51527c6f006a10419e6 (patch)
tree8571f17a637ffc5594f9ae01eba618f9566e46ef /drivers/net/ethernet/freescale/enetc/enetc_pf.c
parentMerge branch 'stmmac-SPDX' (diff)
downloadlinux-dev-cbe9e835946fc792b061d51527c6f006a10419e6.tar.xz
linux-dev-cbe9e835946fc792b061d51527c6f006a10419e6.zip
enetc: Enable TC offloading with mqprio
Add support to configure multiple prioritized TX traffic classes with mqprio. Configure one BD ring per TC for the moment, one netdev queue per TC. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/enetc/enetc_pf.c')
-rw-r--r--drivers/net/ethernet/freescale/enetc/enetc_pf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pf.c b/drivers/net/ethernet/freescale/enetc/enetc_pf.c
index d78ec8d43c39..258b3cb38a6f 100644
--- a/drivers/net/ethernet/freescale/enetc/enetc_pf.c
+++ b/drivers/net/ethernet/freescale/enetc/enetc_pf.c
@@ -703,6 +703,7 @@ static const struct net_device_ops enetc_ndev_ops = {
.ndo_set_vf_spoofchk = enetc_pf_set_vf_spoofchk,
.ndo_set_features = enetc_pf_set_features,
.ndo_do_ioctl = enetc_ioctl,
+ .ndo_setup_tc = enetc_setup_tc,
};
static void enetc_pf_netdev_setup(struct enetc_si *si, struct net_device *ndev,