On 11/25/2019 8:27 AM, Kalesh A P wrote: > From: Kalesh AP <kalesh-anakkur.pura...@broadcom.com> > > Patch adds a runtime function to display the unicast and > multicast MAC addresses added to a port. > > Syntax: > show port (port_id) macs|mcast_macs > > Usage: > testpmd> show port 0 macs > Number of MAC address added: 1 > B0:26:28:7F:F5:C1 > testpmd> > testpmd> show port 0 mcast_macs > Number of Multicast MAC address added: 0 > testpmd> > testpmd> mac_addr add 0 B0:26:28:7F:22:33 > testpmd> mac_addr add 0 B0:26:28:7F:22:34 > testpmd> show port 0 macs > Number of MAC address added: 3 > B0:26:28:7F:F5:C1 > B0:26:28:7F:22:33 > B0:26:28:7F:22:34 > testpmd> > testpmd> mac_addr remove 0 B0:26:28:7F:22:33 > testpmd> show port 0 macs > Number of MAC address added: 2 > B0:26:28:7F:F5:C1 > B0:26:28:7F:22:34 > > Signed-off-by: Kalesh AP <kalesh-anakkur.pura...@broadcom.com> > Reviewed-by: Ajit Khaparde <ajit.khapa...@broadcom.com>
Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com> > @@ -487,6 +487,21 @@ set packet types classification for a specific port:: > > testpmd> set port (port_id) ptypes_mask (mask) > > +show port mac addresses info > +~~~~~~~~~~~~~~~~~~~~~~~~~~ Causing warning [1], will fix while merging. [1] WARNING: Title underline too short. > + > +Show mac addresses added for a specific port:: > + > + testpmd> show port (port_id) macs > + > + > +show port mac addresses info > +~~~~~~~~~~~~~~~~~~~~~~~~~~ 's/mac addresses/multicast mac addresses', again I can fix while merging. > + > +Show multicast mac addresses added for a specific port:: > + > + testpmd> show port (port_id) mcast_macs > + > show device info > ~~~~~~~~~~~~~~~~ > >