]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: zynq_gem: Disable broadcast packets
authorMichal Simek <michal.simek@amd.com>
Mon, 2 Mar 2026 07:43:32 +0000 (08:43 +0100)
committerMichal Simek <michal.simek@amd.com>
Mon, 23 Mar 2026 13:58:46 +0000 (14:58 +0100)
There is no reason to react on broadcast packets that's why just ignore
them not to waste cycles on packets which are not for the platform.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/6e10793b7d72668343756edb66221f1415570250.1772437409.git.michal.simek@amd.com
drivers/net/zynq_gem.c

index 407b022508cacd6978fb1dd62dc20b9c5951b690..b05c752b17eb8416adb4fbb8232e479597b8a1c8 100644 (file)
@@ -64,6 +64,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_NBC             0x00000020 /* 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 */
@@ -76,6 +77,7 @@
 
 #define ZYNQ_GEM_NWCFG_INIT            (ZYNQ_GEM_DBUS_WIDTH | \
                                        ZYNQ_GEM_NWCFG_FDEN | \
+                                       ZYNQ_GEM_NWCFG_NBC | \
                                        ZYNQ_GEM_NWCFG_FSREM)
 
 #define ZYNQ_GEM_NWSR_MDIOIDLE_MASK    0x00000004 /* PHY management idle */