-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
dpdk/hw_offload: add support for vlan stripping - v2 #11997
Conversation
Utilize DPDK API for hardware vlan stripping if supported by NIC. Ticket: 7330
NOTE: This PR may contain new authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few nits to fix.
@@ -31,6 +31,7 @@ typedef struct DPDKIfaceConfigAttributes_ { | |||
const char *checksum_checks; | |||
const char *checksum_checks_offload; | |||
const char *mtu; | |||
const char *vlan_strip_enabled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest this be renamed to the same as the name of the YAML attribute so:
vlan_strip_offload
const struct rte_eth_dev_info *dev_info, struct rte_eth_conf *port_conf) | ||
{ | ||
if (iconf->vlan_strip_enabled) { | ||
SCLogConfig("%s: hardware vlan stripping enabled", iconf->iface); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would only print this in case I actually set the VLAN offload (So a line below L1217)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11997 +/- ##
==========================================
+ Coverage 82.75% 83.22% +0.46%
==========================================
Files 910 910
Lines 249016 258201 +9185
==========================================
+ Hits 206069 214881 +8812
- Misses 42947 43320 +373
Flags with carried forward coverage won't be shown. Click here to find out more. |
Continues in 12008 |
Utilize DPDK API for hardware vlan stripping if supported by NIC.
Ticket: 7330
Contribution style:
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
Our Contribution agreements:
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Changes (if applicable):
https://redmine.openinfosecfoundation.org/issues/7330
Previous PR #11974
Describe changes:
v2
v1