HC2VPP: Plugin Implementation question


Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES@Cisco) <mgradzki@...>
 

Hi,

I think v3po is currently better place for af_packet.
We planned to move some of the functionalities out from v3po
and then rename it to vpp-interfaces:
https://gerrit.fd.io/r/#/c/5583/

But this is on hold currently.

Regards,
Marek

-----Original Message-----
From: hc2vpp-bounces@... [mailto:hc2vpp-bounces@...] On Behalf Of Madhu Mohan
Sent: 13 listopada 2017 15:03
To: hc2vpp@...
Subject: [hc2vpp] HC2VPP: Plugin Implementation question

Hi

I am currently working on af_packet api for HC2VPP (https://jira.fd.io/browse/HC2VPP-88).

The description mentions that the implementation should be in line with ietf-interfaces.

Marek shared with me the guide
(https://docs.fd.io/hc2vpp/1.17.04-SNAPSHOT/release-notes-aggregator/devel_plugin_vpp_tutorial.html)
to help. This is quite useful.

At first attempt, I attempted to implement AF_Packet as a separate plugin on the lines of "NAT", "NSH" or "ACL".

However, I found that, AF_PACKET is more closer to implementation for "vhost-user" implementation which is part of the V3PO plugins.

Can someone please suggest which approach is expected ? I currently have
2 versions of code. I can submit a patch for review based on the approach suggested.

Thanks and Regards,

Madhu Mohan

_______________________________________________
hc2vpp mailing list
hc2vpp@...
https://lists.fd.io/mailman/listinfo/hc2vpp


Madhu Mohan <mmnelemane@...>
 

Hi

I am currently working on af_packet api for HC2VPP (https://jira.fd.io/browse/HC2VPP-88).

The description mentions that the implementation should be in line with ietf-interfaces.

Marek shared with me the guide (https://docs.fd.io/hc2vpp/1.17.04-SNAPSHOT/release-notes-aggregator/devel_plugin_vpp_tutorial.html) to help. This is quite useful.

At first attempt, I attempted to implement AF_Packet as a separate plugin on the lines of "NAT", "NSH" or "ACL".

However, I found that, AF_PACKET is more closer to implementation for "vhost-user" implementation which is part of the V3PO plugins.

Can someone please suggest which approach is expected ? I currently have 2 versions of code. I can submit a patch for review based on the approach suggested.

Thanks and Regards,

Madhu Mohan