Hi Stanislav,

Following is the trace :

with flooding enabled:

vpp# show bridge-domain 100 det
  BD-ID   Index   BSN  Age(min)  Learning  U-Forwrd   UU-Flood   Flooding
 ARP-Term  arp-ufwd Learn-co Learn-li   BVI-Intf
   100      1           0        off              on            on
    flood        on               off                off        1
 16777216     N/A
span-l2-input l2-input-classify l2-input-feat-arc l2-policer-classify
l2-input-acl vpath-input-l2 l2-ip-qos-record l2-input-vtr l2-learn l2-rw
l2-fwd l2-flood l2-flood l2-output

           Interface           If-idx ISN  SHG  BVI  TxFlood
 VLAN-Tag-Rewrite
            port0/0              1     1    0    -      *
none
            port0/1              2    108   0    -      *
none
            port0/2              3     1    0    -      *
none

Packet 1

00:11:47:356640: dpdk-input
  port0/0 rx queue 0
  buffer 0xfc9fc3: current data 0, length 60, buffer-pool 0, ref-count 1,
trace handle 0x0
                   ext-hdr-valid
  PKT MBUF: port 0, nb_segs 1, pkt_len 60
    buf_len 2176, data_len 60, ol_flags 0x180, data_off 128, phys_addr
0x3f27f140
    packet_type 0x0 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
    rss 0x0 fdir.hi 0x0 fdir.lo 0x0
    Packet Offload Flags
      PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
      PKT_RX_IP_CKSUM_NONE (0x0090) no IP cksum of RX pkt.
      PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
      PKT_RX_L4_CKSUM_NONE (0x0108) no L4 cksum of RX pkt.
  ARP: a4:bf:01:89:9d:cf -> ff:ff:ff:ff:ff:ff
  request, type ethernet/IP4, address size 6/4
  a4:bf:01:89:9d:cf/30.30.30.6 -> 01:03:05:07:09:00/30.30.30.6
00:11:47:356665: ethernet-input
  frame: flags 0x3, hw-if-index 1, sw-if-index 1
  ARP: a4:bf:01:89:9d:cf -> ff:ff:ff:ff:ff:ff
00:11:47:357793: l2-input
  l2-input: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src a4:bf:01:89:9d:cf
[l2-learn l2-flood ]
00:11:47:357796: l2-learn
  l2-learn: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src a4:bf:01:89:9d:cf
bd_index 1
00:11:47:357799: l2-flood
  l2-flood: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src a4:bf:01:89:9d:cf
bd_index 1
  l2-flood: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src a4:bf:01:89:9d:cf
bd_index 1
00:11:47:357804: l2-output
  l2-output: sw_if_index 3 dst ff:ff:ff:ff:ff:ff src a4:bf:01:89:9d:cf data
08 06 00 01 08 00 06 04 00 01 a4 bf
  l2-output: sw_if_index 2 dst ff:ff:ff:ff:ff:ff src a4:bf:01:89:9d:cf data
08 06 00 01 08 00 06 04 00 01 a4 bf
00:11:47:357807: port0/2-output
  port0/2
  ARP: a4:bf:01:89:9d:cf -> ff:ff:ff:ff:ff:ff
  request, type ethernet/IP4, address size 6/4
  a4:bf:01:89:9d:cf/30.30.30.6 -> 01:03:05:07:09:00/30.30.30.6
00:11:47:357812: port0/1-output
  port0/1
  ARP: a4:bf:01:89:9d:cf -> ff:ff:ff:ff:ff:ff
  request, type ethernet/IP4, address size 6/4
  a4:bf:01:89:9d:cf/30.30.30.6 -> 01:03:05:07:09:00/30.30.30.6
00:11:47:357813: port0/2-tx
  port0/2 tx queue 0
  buffer 0xfc9fc3: current data 0, length 60, buffer-pool 0, ref-count 1,
trace handle 0x0
                   ext-hdr-valid
                   l2-hdr-offset 0 l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 60
    buf_len 2176, data_len 60, ol_flags 0x180, data_off 128, phys_addr
0x3f27f140
    packet_type 0x0 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
    rss 0x0 fdir.hi 0x0 fdir.lo 0x0
    Packet Offload Flags
      PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
      PKT_RX_IP_CKSUM_NONE (0x0090) no IP cksum of RX pkt.
      PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
      PKT_RX_L4_CKSUM_NONE (0x0108) no L4 cksum of RX pkt.
  ARP: a4:bf:01:89:9d:cf -> ff:ff:ff:ff:ff:ff
  request, type ethernet/IP4, address size 6/4
  a4:bf:01:89:9d:cf/30.30.30.6 -> 01:03:05:07:09:00/30.30.30.6
00:11:47:357819: error-drop
  rx:port0/0
00:11:47:357821: drop
  port0/1-output: interface is down



**********************************************************************************************************
with flooding disabled :

vpp# show bridge-domain 100 det
  BD-ID   Index   BSN  Age(min)  Learning  U-Forwrd   UU-Flood   Flooding
 ARP-Term  arp-ufwd Learn-co Learn-li   BVI-Intf
   100      1             0     off               on            on
        flood        off       off                       off        1
   16777216     N/A
span-l2-input l2-input-classify l2-input-feat-arc l2-policer-classify
l2-input-acl vpath-input-l2 l2-ip-qos-record l2-input-vtr l2-learn l2-rw
l2-fwd l2-flood l2-flood l2-output

           Interface           If-idx ISN  SHG  BVI  TxFlood
 VLAN-Tag-Rewrite
            port0/0              1     1    0    -      *
none
            port0/1              2    108   0    -      *
none
            port0/2              3     1    0    -      *
none

Packet 1

01:01:13:194982: dpdk-input
  port0/0 rx queue 0
  buffer 0xfc13e9: current data 0, length 1446, buffer-pool 0, ref-count 1,
trace handle 0x0
                   ext-hdr-valid
  PKT MBUF: port 0, nb_segs 1, pkt_len 1446
    buf_len 2176, data_len 1446, ol_flags 0x180, data_off 128, phys_addr
0x3f04fac0
    packet_type 0x211 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
    rss 0x0 fdir.hi 0x0 fdir.lo 0x0
    Packet Offload Flags
      PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
      PKT_RX_IP_CKSUM_NONE (0x0090) no IP cksum of RX pkt.
      PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
      PKT_RX_L4_CKSUM_NONE (0x0108) no L4 cksum of RX pkt.
    Packet Types
      RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
      RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
      RTE_PTYPE_L4_UDP (0x0200) UDP packet
  IP4: a4:bf:01:89:9d:cf -> ab:cd:ef:ab:cd:ef 802.1q vlan 100
  UDP: 30.30.30.6 -> 40.40.40.5
    tos 0x00, ttl 64, length 1428, checksum 0xe907 dscp CS0 ecn NON_ECN
    fragment id 0x0001
  UDP: 1025 -> 12
    length 1408, checksum 0xfb26
01:01:13:194994: ethernet-input
  frame: flags 0x3, hw-if-index 1, sw-if-index 1
  IP4: a4:bf:01:89:9d:cf -> ab:cd:ef:ab:cd:ef 802.1q vlan 100
01:01:13:195001: l2-input
  l2-input: sw_if_index 1 dst ab:cd:ef:ab:cd:ef src a4:bf:01:89:9d:cf
[l2-learn ]
01:01:13:195004: l2-learn
  l2-learn: sw_if_index 1 dst ab:cd:ef:ab:cd:ef src a4:bf:01:89:9d:cf
bd_index 1
01:01:13:195006: feature-bitmap-drop
  feat_bitmap_drop: feature bitmap 0x00000001
01:01:13:195007: error-drop
  rx:port0/0
01:01:13:195009: drop
  feature-bitmap-drop: L2 feature forwarding disabled

If we disable flooding in a Bridge Domain then will it not
forward,broadcast or multicast any packets .although UU-Flood is enabled.
If you could please explain this.

Thank You
Pragya Nand



On Fri, Jul 22, 2022 at 5:18 PM Stanislav Zaikin <zsta...@gmail.com> wrote:

> Hi Pragya,
>
> Could you attach a trace?
>
> On Fri, 22 Jul 2022 at 13:14, Pragya Nand Bhagat <
> pragya.nand.bhaga...@gmail.com> wrote:
>
>> Hi All,
>>
>> Please have a look on the below issue:
>> I have attached my conf file.
>>
>> Or is the bridge-domain functionality broken .
>>
>> Thanks
>> Pragya Nand
>>
>> On Wed, Jul 20, 2022 at 9:57 AM Pragya Nand Bhagat via lists.fd.io
>> <pragya.nand.bhagat.1=gmail....@lists.fd.io> wrote:
>>
>>> Hi All,
>>>
>>> I'm trying to create a bridge domain and add ports to it for layer 2
>>> functionality.
>>> There are 3 physical ports.
>>> I have used the following commands :
>>>
>>> create bridge-domain 100
>>> set interface l2 bridge port0/0 100
>>> set interface l2 bridge port0/1 100
>>> set interface l2 bridge port0/2 100
>>>
>>> set bridge-domain flood 100 disable
>>>
>>> vpp# show bridge-domain
>>>   BD-ID   Index   BSN  Age(min)  Learning  U-Forwrd   UU-Flood
>>> Flooding  ARP-Term  arp-ufwd Learn-co Learn-li   BVI-Intf
>>>    100      1           0         off           on            on
>>>        flood          off            off                off              1
>>>        16777216     N/A
>>>
>>> I have the expectation if I disable flooding on the bridge domain and as
>>> UU-Flood is enabled it'll still flood on all the ports part of bridge
>>> domain.
>>>
>>> Above is not happening .
>>>
>>> Also when I try to add mac in l2fib on port using :
>>>
>>> l2fib add 52:54:00:53:18:55 200 port0/0 static
>>>
>>> vpp should unicast the packet which is also not happening .
>>>
>>> I'm using vpp version 22.06 .
>>>
>>> Please suggest how to achieve this or if I missed something .
>>>
>>> Thank You
>>> Pragya Nand
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
> Best regards
> Stanislav Zaikin
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21749): https://lists.fd.io/g/vpp-dev/message/21749
Mute This Topic: https://lists.fd.io/mt/92498639/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to