diff options
author | Karicheri, Muralidharan <m-karicheri2@ti.com> | 2017-01-06 21:37:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-08 03:03:50 +0100 |
commit | 4cd85a61d2185a79389cd5e52c02223db9062559 (patch) | |
tree | 62638654d287b2e65cc7a3fa5028694e9be7ba04 /drivers/net/ethernet/ti/netcp.h | |
parent | net: netcp: ethss: get phy-handle only if link interface is MAC-to-PHY (diff) | |
download | linux-4cd85a61d2185a79389cd5e52c02223db9062559.tar.xz linux-4cd85a61d2185a79389cd5e52c02223db9062559.zip |
net: netcp: use hw capability to remove FCS word from rx packets
Some of the newer Ethernet switch hw (such as that on k2e/l/g) can
strip the Etherenet FCS from packet at the port 0 egress of the switch.
So use this capability instead of doing it in software.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/netcp.h')
-rw-r--r-- | drivers/net/ethernet/ti/netcp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/netcp.h b/drivers/net/ethernet/ti/netcp.h index d243c5df9d6b..8900a6fad318 100644 --- a/drivers/net/ethernet/ti/netcp.h +++ b/drivers/net/ethernet/ti/netcp.h @@ -102,6 +102,8 @@ struct netcp_intf { void *rx_fdq[KNAV_DMA_FDQ_PER_CHAN]; struct napi_struct rx_napi; struct napi_struct tx_napi; +#define ETH_SW_CAN_REMOVE_ETH_FCS BIT(0) + u32 hw_cap; /* 64-bit netcp stats */ struct netcp_stats stats; |