; Claudiu Manoil
> ; Alexandre Belloni
> ; Linus Walleij ;
> Alvin Šipraga ; George McCollister
> ; Andreas Larsson ;
> Iyappan Subramanian ; Keyur Chudgar
> ; Chris Snook ;
> Nicolas Ferre ; Claudiu Beznea
> ; Madalin Bucur ;
> Wei Fang ; Shenwei Wang ;
> Clark Wang ;
> -Original Message-
> From: Rob Herring
> Sent: 2023年3月10日 22:47
> To: Wolfgang Grandegger ; Marc Kleine-Budde
> ; David S. Miller ; Eric
> Dumazet ; Jakub Kicinski ; Paolo
> Abeni ; Nicolas Ferre ;
> Claudiu Beznea ; Wei Fang
> ; Shenwei Wang ; Clark Wang
__iomem
*port_regs)
| ^
| static
8 warnings generated.
Fixes: 6517798dd343 ("enetc: Make MDIO accessors more generic and export to
include/linux/fsl")
Cc: sta...@vger.kernel.org
Reported-by: kernel test robot
Closes:
https://lore.kernel.org/oe-kbuild-all/202410102136.jqhzocs4-...@inte
> Subject: Re: [PATCH net-next 05/13] net: enetc: add debugfs interface to dump
> MAC filter
>
> On Fri, Jan 03, 2025 at 02:06:01PM +0800, Wei Fang wrote:
> > ENETC's MAC filter consists of hash MAC filter and exact MAC filter. Hash
> > MAC filter is a 64-entry hash t
will be supported in
subsequent patches.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.h | 2 +
.../net/ethernet/freescale/enetc/enetc4_hw.h | 8 +
.../net/ethernet/freescale/enetc/enetc4_pf.c | 411 +-
.../net/ethernet/freescale/enetc/enetc_hw.h
, and teardown_cbdr() is used to free
the command BD ring.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.h | 27 --
.../net/ethernet/freescale/enetc/enetc4_pf.c | 47 -
.../net/ethernet/freescale/enetc/enetc_cbdr.c | 51
memory
and needs to be read through command BD ring. In order to facilitate
debugging, added a debugfs interface to get the relevant information
about MAC filter.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/Makefile | 1 +
drivers/net/ethernet/freescale/enetc/enetc.h | 1 +
..
PF and VFs. This lays the basis for i.MX95 ENETC PF and VFs to support
MAC address filtering.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 36 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 17 +++
.../net/ethernet/freescale/enetc/enetc_pf.c
tc flower and debugfs will be added in the future.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/Kconfig | 11 +
drivers/net/ethernet/freescale/enetc/Makefile | 3 +
drivers/net/ethernet/freescale/enetc/ntmp.c | 468 ++
.../ethernet/freescale/enetc
filter functions enetc_vlan_rx_add_vid() and enetc_vlan_rx_del_vid()
are moved to enetc_pf_common.c.
Signed-off-by: Wei Fang
---
.../net/ethernet/freescale/enetc/enetc_pf.c | 34 ++-
.../net/ethernet/freescale/enetc/enetc_pf.h | 1 +
.../freescale/enetc/enetc_pf_common.c
easier
to add VLAN filter support for i.MX95 ENETC later.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 25 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 6 +++
.../net/ethernet/freescale/enetc/enetc_pf.c | 46 +--
.../net/ethernet
Add Receive side scaling (RSS) support for i.MX95 ENETC PF to improve the
network performance and balance the CPU loading. In addition, since both
ENETC v1 and ENETC v4 only support the toeplitz algorithm, so a check for
hfunc was added.
Signed-off-by: Wei Fang
---
drivers/net/ethernet
Add VLAN hash filter support for i.MX95 ENETC PF. If VLAN filtering is
disabled, then VLAN promiscuous mode will be enabled, which means that
PF qualifies for reception of all VLAN tags.
Signed-off-by: Wei Fang
---
.../net/ethernet/freescale/enetc/enetc4_hw.h | 4
.../net/ethernet
Add internal loopback support for i.MX95 ENETC PF, the default loopback
mode is MAC level loopback, the MAC Tx data is looped back onto the Rx.
The MAC interface runs at a fixed 1:8 ratio of NETC clock in MAC-level
loopback mode, with no dependency on Tx clock.
Signed-off-by: Wei Fang
Both ENETC v1 and v4 support Receive Side Scaling (RSS), but the offset
of the RSS key registers is different. In order to make enetc_get_rxfh()
and enetc_set_rxfh() be reused by ENETC v4, the .set_rss_key() and
.get_rss_key() interfaces are added to enect_pf_ops.
Signed-off-by: Wei Fang
improved when then network is enabled.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 35 ++-
.../freescale/enetc/enetc_pf_common.c | 4 ++-
.../net/ethernet/freescale/enetc/enetc_vf.c | 4 ++-
3 files changed, 25 insertions(+), 18 deletions
added support for MAC address filter
table and RSS table.
2. Add MAC filter and VLAN filter support for i.MX95 ENETC PF.
3. Add RSS support for i.MX95 ENETC PF.
4. Add loopback support for i.MX95 ENETC PF.
Wei Fang (13):
net: enetc: add initial netc-lib driver to support NTMP
net: enetc: add
Add new file ntmp.h. to ENETC driver.
Signed-off-by: Wei Fang
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 1579124ef426..ac28154f7eb5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9099,6 +9099,7 @@ F:
Documentation/devicetree
> > +#define NTMP_FILL_CRD(crd, tblv, qa, ua) \
> > +({ \
> > + typeof(crd) _crd = (crd); \
> > + (_crd)->update_act = cpu_to_le16(ua); \
> > + (_crd)->tblv_qact = NTMP_TBLV_QACT(tblv, qa); \
> > +})
> > +
> > +#define NTMP_FILL_CRD_EID(req, tblv, qa, ua, eid) \
> > +({ \
> > + typeof(req)
will be supported in
subsequent patches.
Signed-off-by: Wei Fang
---
v2 changes:
Fix the compile warning.
---
drivers/net/ethernet/freescale/enetc/enetc.h | 2 +
.../net/ethernet/freescale/enetc/enetc4_hw.h | 8 +
.../net/ethernet/freescale/enetc/enetc4_pf.c | 411 +-
.../net
memory
and needs to be read through command BD ring. In order to facilitate
debugging, added a debugfs interface to get the relevant information
about MAC filter.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/Makefile | 1 +
drivers/net/ethernet/freescale/enetc/enetc.h | 1 +
..
PF and VFs. This lays the basis for i.MX95 ENETC PF and VFs to support
MAC address filtering.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 36 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 17 +++
.../net/ethernet/freescale/enetc/enetc_pf.c
tc flower and debugfs will be added in the future.
Signed-off-by: Wei Fang
---
v2 changes:
Change NTMP_FILL_CRD() and NTMP_FILL_CRD_EID to functions.
---
drivers/net/ethernet/freescale/enetc/Kconfig | 11 +
drivers/net/ethernet/freescale/enetc/Makefile | 3 +
drivers/net/ethernet/freescale
, and teardown_cbdr() is used to free
the command BD ring.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.h | 27 --
.../net/ethernet/freescale/enetc/enetc4_pf.c | 47 -
.../net/ethernet/freescale/enetc/enetc_cbdr.c | 51
added support for MAC address filter
table and RSS table.
2. Add MAC filter and VLAN filter support for i.MX95 ENETC PF.
3. Add RSS support for i.MX95 ENETC PF.
4. Add loopback support for i.MX95 ENETC PF.
---
v1 Link: https://lore.kernel.org/imx/20250103060610.2233908-1-wei.f...@nxp.com/
---
Wei
improved when then network is enabled.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 35 ++-
.../freescale/enetc/enetc_pf_common.c | 4 ++-
.../net/ethernet/freescale/enetc/enetc_vf.c | 4 ++-
3 files changed, 25 insertions(+), 18 deletions
filter functions enetc_vlan_rx_add_vid() and enetc_vlan_rx_del_vid()
are moved to enetc_pf_common.c.
Signed-off-by: Wei Fang
---
.../net/ethernet/freescale/enetc/enetc_pf.c | 34 ++-
.../net/ethernet/freescale/enetc/enetc_pf.h | 1 +
.../freescale/enetc/enetc_pf_common.c
Add VLAN hash filter support for i.MX95 ENETC PF. If VLAN filtering is
disabled, then VLAN promiscuous mode will be enabled, which means that
PF qualifies for reception of all VLAN tags.
Signed-off-by: Wei Fang
---
.../net/ethernet/freescale/enetc/enetc4_hw.h | 4
.../net/ethernet
Add internal loopback support for i.MX95 ENETC PF, the default loopback
mode is MAC level loopback, the MAC Tx data is looped back onto the Rx.
The MAC interface runs at a fixed 1:8 ratio of NETC clock in MAC-level
loopback mode, with no dependency on Tx clock.
Signed-off-by: Wei Fang
Add Receive side scaling (RSS) support for i.MX95 ENETC PF to improve the
network performance and balance the CPU loading. In addition, since both
ENETC v1 and ENETC v4 only support the toeplitz algorithm, so a check for
hfunc was added.
Signed-off-by: Wei Fang
---
drivers/net/ethernet
easier
to add VLAN filter support for i.MX95 ENETC later.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 25 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 6 +++
.../net/ethernet/freescale/enetc/enetc_pf.c | 46 +--
.../net/ethernet
Both ENETC v1 and v4 support Receive Side Scaling (RSS), but the offset
of the RSS key registers is different. In order to make enetc_get_rxfh()
and enetc_set_rxfh() be reused by ENETC v4, the .set_rss_key() and
.get_rss_key() interfaces are added to enect_pf_ops.
Signed-off-by: Wei Fang
Add new file ntmp.h. to ENETC driver.
Signed-off-by: Wei Fang
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 1579124ef426..ac28154f7eb5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9099,6 +9099,7 @@ F:
Documentation/devicetree
> -Original Message-
> From: Jakub Kicinski
> Sent: 2025年1月16日 10:41
> To: Wei Fang
> Cc: Claudiu Manoil ; Vladimir Oltean
> ; Clark Wang ;
> andrew+net...@lunn.ch; da...@davemloft.net; eduma...@google.com;
> pab...@redhat.com; christophe.le...@csgroup.eu; net...@
> On Mon, 13 Jan 2025 16:22:39 +0800 Wei Fang wrote:
> > Add Receive side scaling (RSS) support for i.MX95 ENETC PF to improve the
> > network performance and balance the CPU loading. In addition, since both
> > ENETC v1 and ENETC v4 only support the toeplitz algorithm, so
> > On Tue, 4 Mar 2025 15:21:49 +0800 Wei Fang wrote:
> > > +config NXP_NETC_LIB
> > > + tristate "NETC Library"
> >
> > Remove the string after "tristate", the user should not be prompted
> > to make a choice for this, since the cons
> On Sat, 8 Mar 2025 02:05:35 +0000 Wei Fang wrote:
> > > > On Tue, 4 Mar 2025 15:21:49 +0800 Wei Fang wrote:
> > > hm..., there are some interfaces of netc-lib are used in common .c
> > > files in downstream, so I used "ifdef" in downstream. Now for the
> On Tue, 4 Mar 2025 15:21:49 +0800 Wei Fang wrote:
> > +config NXP_NETC_LIB
> > + tristate "NETC Library"
>
> Remove the string after "tristate", the user should not be prompted
> to make a choice for this, since the consumers "select&qu
Both ENETC v1 and ENETC v4 only support the toeplitz algorithm for RSS,
so add a check for RSS hfunc.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
easier
to add VLAN filter support for i.MX95 ENETC later.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 25 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 6 +++
.../net/ethernet/freescale/enetc/enetc_pf.c | 46 +--
.../net/ethernet
filter functions enetc_vlan_rx_add_vid() and enetc_vlan_rx_del_vid()
are moved to enetc_pf_common.c.
Signed-off-by: Wei Fang
---
.../net/ethernet/freescale/enetc/enetc_pf.c | 34 ++-
.../net/ethernet/freescale/enetc/enetc_pf.h | 1 +
.../freescale/enetc/enetc_pf_common.c
Add VLAN hash filter support for i.MX95 ENETC PF. If VLAN filtering is
disabled, then VLAN promiscuous mode will be enabled, which means that
PF qualifies for reception of all VLAN tags.
Signed-off-by: Wei Fang
---
.../net/ethernet/freescale/enetc/enetc4_hw.h | 4
.../net/ethernet
improved when then network is enabled.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 35 ++-
.../freescale/enetc/enetc_pf_common.c | 4 ++-
.../net/ethernet/freescale/enetc/enetc_vf.c | 4 ++-
3 files changed, 25 insertions(+), 18 deletions
Add internal loopback support for i.MX95 ENETC PF, the default loopback
mode is MAC level loopback, the MAC Tx data is looped back onto the Rx.
The MAC interface runs at a fixed 1:8 ratio of NETC clock in MAC-level
loopback mode, with no dependency on Tx clock.
Signed-off-by: Wei Fang
Add new file ntmp.h. to ENETC driver.
Signed-off-by: Wei Fang
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 7078199fcebf..e259b659eadb 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9174,6 +9174,7 @@ F:
Documentation/devicetree
enetc_set_rss_key()
and enetc_get_rss_key() can be reused for this trivial.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 7 +-
drivers/net/ethernet/freescale/enetc/enetc.h | 6 +-
.../net/ethernet/freescale/enetc/enetc4_pf.c | 22 +++---
.../net/ethernet/freescale/enetc
tc flower and debugfs will be added in the future.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/Kconfig | 11 +
drivers/net/ethernet/freescale/enetc/Makefile | 3 +
drivers/net/ethernet/freescale/enetc/ntmp.c | 458 ++
.../ethernet/freescale/enetc
will be supported in
subsequent patches.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.h | 2 +
.../net/ethernet/freescale/enetc/enetc4_hw.h | 8 +
.../net/ethernet/freescale/enetc/enetc4_pf.c | 418 +-
.../net/ethernet/freescale/enetc/enetc_hw.h
PF and VFs. This lays the basis for i.MX95 ENETC PF and VFs to support
MAC address filtering.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 36 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 17 +++
.../net/ethernet/freescale/enetc/enetc_pf.c
_key()
instead of adding .set_rss_key() and .get_rss_key() to enetc_pf_ops
6. Separate patch " net: enetc: check if the RSS hfunc is toeplitz" from
patch "net: enetc: add RSS support for i.MX95 ENETC PF"
---
Wei Fang (13):
net: enetc: add initial netc-lib driver to suppor
, and teardown_cbdr() is used to free
the command BD ring.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.h | 27 +++--
.../net/ethernet/freescale/enetc/enetc4_pf.c | 47 +++-
.../net/ethernet/freescale/enetc/enetc_cbdr.c | 55 +--
.../net
memory
and needs to be read through command BD ring. In order to facilitate
debugging, added a debugfs interface to get the relevant information
about MAC filter.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/Makefile | 1 +
drivers/net/ethernet/freescale/enetc/enetc.h | 1 +
..
PF and VFs. This lays the basis for i.MX95 ENETC PF and VFs to support
MAC address filtering.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 36 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 17 +++
.../net/ethernet/freescale/enetc/enetc_pf.c
tc flower and debugfs will be added in the future.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/Kconfig | 8 +
drivers/net/ethernet/freescale/enetc/Makefile | 3 +
drivers/net/ethernet/freescale/enetc/ntmp.c | 458 ++
.../ethernet/freescale/enetc
memory
and needs to be read through command BD ring. In order to facilitate
debugging, added a debugfs interface to get the relevant information
about MAC filter.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/Makefile | 1 +
drivers/net/ethernet/freescale/enetc/enetc.h | 1 +
..
Add VLAN hash filter support for i.MX95 ENETC PF. If VLAN filtering is
disabled, then VLAN promiscuous mode will be enabled, which means that
PF qualifies for reception of all VLAN tags.
Signed-off-by: Wei Fang
---
.../net/ethernet/freescale/enetc/enetc4_hw.h | 4
.../net/ethernet
will be supported in
subsequent patches.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.h | 2 +
.../net/ethernet/freescale/enetc/enetc4_hw.h | 8 +
.../net/ethernet/freescale/enetc/enetc4_pf.c | 422 +-
.../net/ethernet/freescale/enetc/enetc_hw.h
, and teardown_cbdr() is used to free
the command BD ring.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.h | 27 +++--
.../net/ethernet/freescale/enetc/enetc4_pf.c | 47 +++-
.../net/ethernet/freescale/enetc/enetc_cbdr.c | 55 +--
.../net
RSS support for
i.MX95 ENETC PF", one is "net: enetc: add set/get_rss_table() to
enetc_si_ops", the other one is "net: enetc: make enetc_set_rss_key()
reusable"
5. Remove patch "net: enetc: check if the RSS hfunc is toeplitz" from
this patch set.
---
W
easier
to add VLAN filter support for i.MX95 ENETC later.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 25 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 6 +++
.../net/ethernet/freescale/enetc/enetc_pf.c | 46 +--
.../net/ethernet
filter functions enetc_vlan_rx_add_vid() and enetc_vlan_rx_del_vid()
are moved to enetc_pf_common.c.
Signed-off-by: Wei Fang
---
.../net/ethernet/freescale/enetc/enetc_pf.c | 34 ++-
.../net/ethernet/freescale/enetc/enetc_pf.h | 1 +
.../freescale/enetc/enetc_pf_common.c
Since the offset of the RSS key registers of i.MX95 ENETC is different
from that of LS1028A, so add enetc_get_rss_key_base() to get the base
offset for the different chips, so that enetc_set_rss_key() can be
reused for this trivial.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale
Since i.MX95 ENETC (v4) uses NTMP 2.0 to manage the RSS table, which is
different from LS1028A ENETC (v1). In order to reuse some functions
related to the RSS table, so add .get_rss_table() and .set_rss_table()
hooks to enetc_si_ops.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale
Add new file ntmp.h. to ENETC driver.
Signed-off-by: Wei Fang
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 7078199fcebf..e259b659eadb 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9174,6 +9174,7 @@ F:
Documentation/devicetree
Add internal loopback support for i.MX95 ENETC PF, the default loopback
mode is MAC level loopback, the MAC Tx data is looped back onto the Rx.
The MAC interface runs at a fixed 1:8 ratio of NETC clock in MAC-level
loopback mode, with no dependency on Tx clock.
Signed-off-by: Wei Fang
interfaces are compatible with i.MX95. So it's time to
add RSS support to i.MX95 ENETC PF.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 5 +--
drivers/net/ethernet/freescale/enetc/enetc.h | 2 +
.../net/ethernet/freescale/enetc/enetc4_pf.c | 11 +
.../net/eth
improved when then network is enabled.
Signed-off-by: Wei Fang
---
drivers/net/ethernet/freescale/enetc/enetc.c | 35 ++-
.../freescale/enetc/enetc_pf_common.c | 4 ++-
.../net/ethernet/freescale/enetc/enetc_vf.c | 4 ++-
3 files changed, 25 insertions(+), 18 deletions
> On Tue, Mar 11, 2025 at 01:38:16PM +0800, Wei Fang wrote:
> > This patch set adds the following features.
> > 1. Compared with ENETC v1, the formats of tables and command BD of ENETC
> > v4 have changed significantly, and the two are not compatible. Therefore,
> > i
Best Regards,
Wei Fang
> -Original Message-
> From: Vladimir Oltean
> On Fri, Mar 14, 2025 at 05:38:18AM +0200, Wei Fang wrote:
> > > > + __le16 update_act;
> > > > + u8 dbg_opt;
> > > > + u8 tblv_qact;
> &g
> On Fri, Mar 14, 2025 at 06:51:06AM +0200, Wei Fang wrote:
> > > I don't understand the need for si->ops->setup_cbdr() and
> > > si->ops->teardown_cbdr()?
> > > Doesn't every call site know which kind of SI it is dealing with, and
> >
> On Tue, Mar 11, 2025 at 01:38:17PM +0800, Wei Fang wrote:
> > +int ntmp_rsst_query_or_update_entry(struct netc_cbdrs *cbdrs, u32 *table,
> > + int count, bool query)
> > +{
> > + struct ntmp_dma_buf data = {.dev = cbdrs->dma_dev};
> > +
> > +static void enetc4_pf_set_si_mac_hash_filter(struct enetc_hw *hw, int si,
> > +int type, u64 hash)
> > +{
> > + if (type == UC) {
> > + enetc_port_wr(hw, ENETC4_PSIUMHFR0(si), lower_32_bits(hash));
> > + enetc_port_wr(hw, ENET
> On Tue, Mar 18, 2025 at 06:47:11AM +0200, Wei Fang wrote:
> > > These rxnfc commands seem implemented identically to the corresponding
> > > subset from enetc_get_rxnfc(). Rather than duplicating those, could you
> > > rather return -EOPNOTSUPP for the unsupporte
> On Tue, Mar 18, 2025 at 05:19:51AM +0200, Wei Fang wrote:
> > You are right, but I'm afraid of the Coverity will report an issue, because
> > the
> > pf->mac_list and pf->num_mfe are protected by the mac_list_lock in other
> > functions. And enetc4_pf_dest
> On Tue, Mar 11, 2025 at 01:38:18PM +0800, Wei Fang wrote:
> > The command BD ring is used to configure functionality where the
> > underlying resources may be shared between different entities or being
> > too large to configure using direct registers (such as lookup tables)
> On Tue, Mar 11, 2025 at 01:38:30PM +0800, Wei Fang wrote:
> > Add new file ntmp.h. to ENETC driver.
> >
> > Signed-off-by: Wei Fang
> > ---
> > MAINTAINERS | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/MAINTAINERS b/MAIN
> On Tue, Mar 11, 2025 at 01:38:25PM +0800, Wei Fang wrote:
> > Receive side scaling (RSS) is a network driver technology that enables
> > the efficient distribution of network receive processing across
> > multiple CPUs in multiprocessor systems. Therefore, it is better
> On Tue, Mar 11, 2025 at 01:38:22PM +0800, Wei Fang wrote:
> > diff --git a/drivers/net/ethernet/freescale/enetc/enetc_vf.c
> b/drivers/net/ethernet/freescale/enetc/enetc_vf.c
> > index d7d9a720069b..072e5b40a199 100644
> > --- a/drivers/net/ethernet/freescale/enetc/enet
> On Tue, Mar 11, 2025 at 01:38:26PM +0800, Wei Fang wrote:
> > For ENETC, each SI has a corresponding VLAN hash table. That is to say,
> > both PF and VFs can support VLAN filter. However, currently only ENETC v1
> > PF driver supports VLAN filter. In order to make i.MX95 ENE
> On Tue, Mar 11, 2025 at 01:38:21PM +0800, Wei Fang wrote:
> > diff --git a/drivers/net/ethernet/freescale/enetc/enetc4_debugfs.c
> > b/drivers/net/ethernet/freescale/enetc/enetc4_debugfs.c
> > new file mode 100644
> > index ..3a660c80344a
> > --
> On Tue, Mar 11, 2025 at 01:38:24PM +0800, Wei Fang wrote:
> > diff --git a/drivers/net/ethernet/freescale/enetc/enetc.h
> b/drivers/net/ethernet/freescale/enetc/enetc.h
> > index a3ce324c716c..ecf79338cd79 100644
> > --- a/drivers/net/ethernet/freescale/enetc/enetc
> On Tue, Mar 11, 2025 at 01:38:23PM +0800, Wei Fang wrote:
> > Since the offset of the RSS key registers of i.MX95 ENETC is different
> > from that of LS1028A, so add enetc_get_rss_key_base() to get the base
> > offset for the different chips, so that enetc_set_rss_key()
> On Mon, Mar 17, 2025 at 11:55:26AM +0200, Wei Fang wrote:
> > Actually I did this is the original version, I mean in downstream kernel 6.6
> > tree. I add a "ntmp_mfe" in ntmp.h like below
> >
> > struct ntmp_mfe {
> > u8 mac[ETH_ALEN];
&g
> On 3/4/25 8:21 AM, Wei Fang wrote:
> > +static void enetc_mac_list_del_matched_entries(struct enetc_pf *pf, u16
> si_bit,
> > + struct enetc_mac_addr *mac,
> > + int mac_cn
> On Tue, Mar 11, 2025 at 01:38:27PM +0800, Wei Fang wrote:
> > Since the VLAN hash filter of ENETC v1 and v4 is the basically same, the
> > only difference is the offset of the VLAN hash filter registers. So, the
> > .set_si_vlan_hash_filter() hook is added to struct enetc_
> title: s/filterng/filtering/
>
> On Tue, Mar 11, 2025 at 01:38:19PM +0800, Wei Fang wrote:
> > Although only ENETC PF can access the MAC address filter table, the table
> > entries can specify MAC address filtering for one or more SIs based on
> > SI_BITMAP, whic
> On Fri, Mar 14, 2025 at 03:48:21PM +0200, Wei Fang wrote:
> > > I mean, I was just suggesting to group the macros with the macros, and
> > > the struct fields with the struct fields. Mixing them together looks a
> > > bit messy to me. Even worse in the defini
87 matches
Mail list logo