linux_dsm_epyc7002/drivers/net/ethernet/ti
Grygorii Strashko 9421c90150 net: ethernet: ti: cpsw: fix min eth packet size
Now CPSW driver configures min eth packet size to 60 octets (ETH_ZLEN)
which works in most of cases, but when port VLAN is configured on some
switch port, it also can be configured to force all egress packets to be
VLAN untagged. And in this case, CPSW driver will pad small packets to 60
octets, but final packet size on port egress can became less than 60 octets
due to VLAN tag removal and packet will be dropped.

Hence, fix it by accounting VLAN header in CPSW min eth packet size. While
here, use proper defines for CPSW_MAX_PACKET_SIZE also, instead of open
coding.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-16 10:49:00 +09:00
..
cpmac.c cpmac: remove hopeless #warning 2017-01-16 11:54:36 -05:00
cpsw_ale.c drivers: net: cpsw_ale: use setup_timer() helper. 2017-09-21 11:44:44 -07:00
cpsw_ale.h net: netcp: ale: add proper ale entry mask bits for netcp switch ALE 2017-01-07 21:03:50 -05:00
cpsw-common.c net: ti: cpsw-common: dont print error if ti_cm_get_macid() fails 2017-08-30 10:05:07 -07:00
cpsw-phy-sel.c drivers: net: cpsw-phy-sel: Clear RGMII_IDMODE on "rgmii" links 2016-12-07 13:12:17 -05:00
cpsw.c net: ethernet: ti: cpsw: fix min eth packet size 2017-11-16 10:49:00 +09:00
cpsw.h net: ethernet: ti: cpts: move dt props parsing to cpts driver 2016-12-07 11:13:48 -05:00
cpts.c net: ethernet: make ptp_clock_info const 2017-08-22 11:04:51 -07:00
cpts.h net: ethernet: ti: cpts: fix tx timestamping timeout 2017-08-01 15:22:55 -07:00
davinci_cpdma.c net: ethernet: ti: cpdma: do not enable host error misc irq 2017-06-10 22:10:13 -04:00
davinci_cpdma.h net: ethernet: ti: cpsw: add support for ringparam configuration 2017-01-07 20:48:14 -05:00
davinci_emac.c net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
davinci_mdio.c drivers: net: davinci_mdio: print bus frequency 2017-08-11 14:23:59 -07:00
Kconfig cpsw/netcp: refine cpts dependency 2017-04-28 15:55:14 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
netcp_core.c net_sch: mqprio: Change TC_SETUP_MQPRIO to TC_SETUP_QDISC_MQPRIO 2017-11-08 12:23:38 +09:00
netcp_ethss.c net: ti: netcp: use setup_timer 2017-09-21 15:48:46 -07:00
netcp_sgmii.c
netcp_xgbepcsr.c
netcp.h net: netcp: use hw capability to remove FCS word from rx packets 2017-01-07 21:03:50 -05:00
tlan.c net/ti/tlan: Convert timers to use timer_setup() 2017-10-18 12:39:36 +01:00
tlan.h