Hi Team,
We developed a plugin in VPP to read data from a physical interface and forward 
to our application,

Packet 2

*03:03:45:254785: dpdk-input*
*HundredGigabitEthernet12/0/0 rx queue 0*
buffer 0x1f3a68: current data 0, length 114, buffer-pool 0, ref-count 1, 
totlen-nifb 132, trace handle 0x1000001
ext-hdr-valid
PKT MBUF: port 0, nb_segs 1, pkt_len 114
buf_len 9344, data_len 114, ol_flags 0x182, data_off 128, phys_addr 0xf28e9a80
packet_type 0x2e1 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
rss 0x42828e0 fdir.hi 0x0 fdir.lo 0x42828e0
Packet Offload Flags
PKT_RX_RSS_HASH (0x0002) RX packet with RSS hash result
PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
Packet Types
RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
RTE_PTYPE_L3_IPV6_EXT_UNKNOWN (0x00e0) IPv6 packet with or without extension 
headers
RTE_PTYPE_L4_UDP (0x0200) UDP packet
IP6: b8:83:03:81:55:e0 -> 33:33:00:00:99:01 802.1q vlan 501
UDP: 2001:5b0:ffff:501:b883:31f:181:55e0 -> ff38:23:2001:5b0:2000::9901
tos 0x00, flow label 0x88b96, hop limit 254, payload length 56
UDP: 58362 -> 9901
length 56, checksum 0x6a9b
*03:03:45:254786: ipgw_ent*
*IPGW_ENT: sw_if_index 2, next index 0*
new src b8:83:03:81:55:e0 -> new dst 33:33:00:00:99:01
03:03:45:254787: ethernet-input
IP6: b8:83:03:81:55:e0 -> 33:33:00:00:99:01 802.1q vlan 501
03:03:45:254787: ip6-input
UDP: 2001:5b0:ffff:501:b883:31f:181:55e0 -> ff38:23:2001:5b0:2000::9901
tos 0x00, flow label 0x88b96, hop limit 254, payload length 56
UDP: 58362 -> 9901
length 56, checksum 0x6a9b
03:03:45:254787: ip6-mfib-forward-lookup
fib 0 entry 3
03:03:45:254787: ip6-mfib-forward-rpf
entry 3 itf -1 flags
03:03:45:254788: ip6-drop
UDP: 2001:5b0:ffff:501:b883:31f:181:55e0 -> ff38:23:2001:5b0:2000::9901
tos 0x00, flow label 0x88b96, hop limit 254, payload length 56
UDP: 58362 -> 9901
length 56, checksum 0x6a9b
03:03:45:254788: error-drop
rx:HundredGigabitEthernet12/0/0.501
03:03:45:254788: drop
ip6-input: drops due to concurrent reassemblies limit

This is working fine when we attach to a physical interface, however we want to 
create a bonded interface and attach bonded interface to the plugin,
This is not working and the plugin never getting hit. I tried adding the

VNET_FEATURE_INIT (ipgw_ent, static) =

{

.arc_name = "device-input",

*.node_name = "ipgw_ent",*

*.runs_before = VNET_FEATURES ("bond-input"),*

}; or "before ethernet-input", still the bonded interface is not getting catch 
and the trace looks like below.

Packet 2

*00:47:16:953591: dpdk-input*

*HundredGigabitEthernet12/0/0 rx queue 0*

buffer 0x169d81: current data 0, length 68, buffer-pool 0, ref-count 1, 
totlen-nifb 0, trace handle 0x1000001

ext-hdr-valid

PKT MBUF: port 0, nb_segs 1, pkt_len 68

buf_len 9344, data_len 68, ol_flags 0x0, data_off 128, phys_addr 0x692760c0

packet_type 0x1 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0

rss 0x0 fdir.hi 0x0 fdir.lo 0x0

Packet Types

RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet

*0x0032: 3c:2c:30:65:54:3d -> 01:00:0c:cc:cc:cd 802.1q vlan 1150 priority 7*

*00:47:16:953592: bond-input*

src 3c:2c:30:65:54:3d, dst 01:00:0c:cc:cc:cd, HundredGigabitEthernet12/0/0 -> 
BondEthernet0

00:47:16:953592: ethernet-input

0x0032: 3c:2c:30:65:54:3d -> 01:00:0c:cc:cc:cd 802.1q vlan 1150 priority 7

00:47:16:953592: llc-input

LLC snap -> snap

00:47:16:953595: snap-input

SNAP cisco per_vlan_spanning_tree

00:47:16:953596: error-drop

rx:BondEthernet0.1150

00:47:16:953596: drop

snap-input: unknown oui/snap protocol

We needed bonded interface support for "LACP/Active-backup" creation.
However our main requirement is we need to get packets to our application as 
"Raw" or "RawSocket" format, so that we can do filtering/forwarding depending 
on our own logic.
That's why we used VPP--> ourplugin--> memif-->ourapplication,
Do you have any better approach, please suggest us. Or how to attach my plugin 
to BondedInterface, anyone will solve our problem.

//Ravi
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19403): https://lists.fd.io/g/vpp-dev/message/19403
Mute This Topic: https://lists.fd.io/mt/82919092/21656
Mute #vpp-memif:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-memif
Mute #vpp-hoststack:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-hoststack
Mute #vnet:https://lists.fd.io/g/vpp-dev/mutehashtag/vnet
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to