Query regarding DPDMUX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Query regarding DPDMUX

1,147 Views
RubyS
Contributor I

Hi all,

I am beginner on DPAA2. I am working on LX2160 and trying to create a DPDMUX with 2 DPNI interfaces. My requirement is to bifurcate the RX packets based on MAC address.

I was able to create the DPDMUX with 2 DPNI (DPNI.1 and DPNI.2). Now when I try to ping  the DPNI.1 from PC, I see the RX packet on both DPNI.1 and DPNI.2 using tcpdump command.

My understanding was that packet should only be forwarded to DPNI.1 since both DPNI.1 and DPNI.2 have different IP and MAC address.

Could anyone please help me understand what should be the expected behaviour in case I ping the DPNI.1 and DPNI.2 interfaces from the PC? Should I see the packet on both the interfaces or only on the target DPNI. 

Also, please let me know if I have missed any steps to create a proper DPDMUX configuration for RX traffic bifurcation.

I have used the below commands:

#Create a dpni with no link:
ls-addni --no-link
#Created interface: eth5 (object:dpni.5, endpoint: )

#Create a DPDMUX and assign it to dprc.1
restool dpdmux create --num-ifs=2 --method=DPDMUX_METHOD_MAC --manip=DPDMUX_MANIP_NONE --option=DPDMUX_OPT_CLS_MASK_SUPPORT -- container=dprc.1

#Removing a DPMAC from DPRC.1
restool dprc disconnect dprc.1 --endpoint=dpmac.3

#Assign DPNI.5 and DPNI. X to DPDDMUX.0
restool dprc connect dprc.1 --endpoint1=dpdmux.0.0 --endpoint2=dpmac.3
restool dprc connect dprc.1 --endpoint1=dpdmux.0.1 --endpoint2=dpni.5
restool dprc connect dprc.1 --endpoint1=dpdmux.0.2 --endpoint2=dpni.3
restool dprc assign dprc.1 --object=dpdmux.0 --plugged=1

 

# ls-listni
dprc.1/dpni.5 (interface: eth5, end point: dpdmux.0.1)
dprc.1/dpni.3 (interface: eth1, end point: dpdmux.0.2)

 

Also do we need to do any configuration in fdb? Or set some rules using ethtool.

 

Thanks for your help.

Regards,

Ruby

 

0 Kudos
Reply
3 Replies

1,090 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

It is explained in chapter 9.2.12.3 Traffic bifurcation using DPDMUX on DPAA2, please find it in the LSDK2108 User guide.

0 Kudos
Reply

790 Views
RaRiRu
Contributor I

Hi,

 

unfortunately, I have also made the same observation that when using "tcpdump" and pinging the interfaces the packets arrive at both DPNIs. The documenetation referrenced also doesn't put some lights on our observations. Please be more specific and don't reference chapter in the documentation to bring us further general explanation. We are seeking concrete help and not something we already know.

Moreover, I suspect, that when using tcpdump the promiscous mode is implicitly enabled for the captured modules, i.e., if you don't turn on promisc mode, you want see nothing, which cannot be, since we expect the DPDMUX to learn the MAC addresses from the attached downlink ports.

0 Kudos
Reply

1,035 Views
RubyS
Contributor I

Hi @Oswalag, thanks for your reply. I have read "9.2.12.3 Traffic bifurcation using DPDMUX on DPAA2" of LSDK2108 User guide. But it does not resolve my queries. 

In user guide, traffic bifurcation is based on "DPDMUX_METHOD_CUSTOM" but I want to do traffic bifurcation on DPDMUX_METHOD_MAC. I have not come across any working example on the same. 

Thanks,

Ruby

 

0 Kudos
Reply