[PATCH] net: gem: Disable broadcast setting

Michal Simek michal.simek at xilinx.com
Thu Oct 21 08:54:06 CEST 2021



On 10/15/21 15:03, Michal Simek wrote:
> There is no need for GEM to accepts broadcast packets because they are not
> handled by u-boot anyway. That's why use HW IP feature and don't waste time
> on these packats which will be dropped anyway.
> 
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
> 
>   drivers/net/zynq_gem.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
> index ff599822673c..c309c3c95499 100644
> --- a/drivers/net/zynq_gem.c
> +++ b/drivers/net/zynq_gem.c
> @@ -60,6 +60,7 @@
>   #define ZYNQ_GEM_NWCFG_SPEED100		0x00000001 /* 100 Mbps operation */
>   #define ZYNQ_GEM_NWCFG_SPEED1000	0x00000400 /* 1Gbps operation */
>   #define ZYNQ_GEM_NWCFG_FDEN		0x00000002 /* Full Duplex mode */
> +#define ZYNQ_GEM_NWCFG_NO_BRDC		BIT(5) /* No broadcast */
>   #define ZYNQ_GEM_NWCFG_FSREM		0x00020000 /* FCS removal */
>   #define ZYNQ_GEM_NWCFG_SGMII_ENBL	0x08000000 /* SGMII Enable */
>   #define ZYNQ_GEM_NWCFG_PCS_SEL		0x00000800 /* PCS select */
> @@ -77,6 +78,7 @@
>   
>   #define ZYNQ_GEM_NWCFG_INIT		(ZYNQ_GEM_DBUS_WIDTH | \
>   					ZYNQ_GEM_NWCFG_FDEN | \
> +					ZYNQ_GEM_NWCFG_NO_BRDC | \
>   					ZYNQ_GEM_NWCFG_FSREM | \
>   					ZYNQ_GEM_NWCFG_MDCCLKDIV)
>   
> 

Applied.
M


More information about the U-Boot mailing list