Skip to content

Commit 2c4dc31

Browse files
Murali Karicheridavem330
authored andcommitted
net: ethernet: ti: add NETIF_F_HW_TC hw feature flag for taprio offload
Currently drive supports taprio offload which is a tc feature offloaded to cpsw hardware. So driver has to set the hw feature flag, NETIF_F_HW_TC in the net device to be compliant. This patch adds the flag. Fixes: 8127224 ("ethernet: ti: am65-cpsw-qos: add TAPRIO offload support") Signed-off-by: Murali Karicheri <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1264d7f commit 2c4dc31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/ti/am65-cpsw-nuss.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,8 @@ static int am65_cpsw_nuss_init_ndev_2g(struct am65_cpsw_common *common)
18501850
port->ndev->max_mtu = AM65_CPSW_MAX_PACKET_SIZE;
18511851
port->ndev->hw_features = NETIF_F_SG |
18521852
NETIF_F_RXCSUM |
1853-
NETIF_F_HW_CSUM;
1853+
NETIF_F_HW_CSUM |
1854+
NETIF_F_HW_TC;
18541855
port->ndev->features = port->ndev->hw_features |
18551856
NETIF_F_HW_VLAN_CTAG_FILTER;
18561857
port->ndev->vlan_features |= NETIF_F_SG;

0 commit comments

Comments
 (0)