Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turn on multicast with linux native interface #1094

Open
tianhengzhou opened this issue Jan 10, 2024 · 2 comments
Open

turn on multicast with linux native interface #1094

tianhengzhou opened this issue Jan 10, 2024 · 2 comments

Comments

@tianhengzhou
Copy link

tianhengzhou commented Jan 10, 2024

I run my Trex server in stateless mode and with interfaces defined with Linux interface names.

This is what's shown in the TRex book under low-end machines sections.

3.5 Linux interfaces
Another interesting low-end use case is using native Linux interfaces.

- version         : 2
#List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available options

  interfaces    : ["private100","private0", "private1", "dummy"]
  port_info     :
      - dest_mac: xx:xx:xx:xx:xx:xx
        src_mac: xx:xx:xx:xx:xx:xx

With that, I'm trying to turn on multicast mode for the port in the trex-console via
portattr -p 0 --mult on

trex>portattr -p 0 1 2 --mult on

Applying attributes on port(s) [0, 1, 2]:                    [SUCCESS]

trex>portattr
Port Status

     port       |          0           |          1           |          2
----------------+----------------------+----------------------+---------------------
driver          |    net_af_packet     |    net_af_packet     |    net_af_packet
description     |       Unknown        |       Unknown        |       Unknown
link status     |          UP          |          UP          |          UP
link speed      |       10 Gb/s        |       10 Gb/s        |       10 Gb/s
port status     |         IDLE         |         IDLE         |         IDLE
promiscuous     |         off          |         off          |         off
multicast       |         off          |         off          |         off
flow ctrl       |         N/A          |         N/A          |         N/A
vxlan fs        |          -           |          -           |          -
--              |                      |                      |
layer mode      |       Ethernet       |       Ethernet       |       Ethernet
src IPv4        |          -           |          -           |          -
IPv6            |         off          |         off          |         off

The port multicast mode won't turn on, keep at off.
I have a similar setup with PCID in the interface like the following
interfaces: ['01:00.0', '05:00.0']
I can switch on multicast for a port without a problem.
I wonder if this Linux interface's low-end mode won't work with multicast
There isn't anything mentioned in the doc that multicast doesn't work for this low-end use case.

@tzhoutarana
Copy link

It seems promiscuous mode can let all package go through

@hhaim
Copy link
Contributor

hhaim commented Apr 30, 2024

@tianhengzhou the multicast enable is per driver, the net_af_packet is not the common case of dpdk driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants