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

dpdk/hw_offload: add support for vlan stripping #12014

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adaki4
Copy link

@adaki4 adaki4 commented Oct 23, 2024

Utilize DPDK API for hardware vlan stripping if supported by NIC.

Ticket: 7330

Contribution style:

Our Contribution agreements:

Changes (if applicable):

Previous PR #12008

Describe changes:
v4

  • fixed wrong return type in ConfigSetVlanStrip

v3

  • minor changes in variable names
  • call SCLogConfig only when VLAN stripping is supported
  • change return type of ConfigSetVlanStrip to void

v2

  • add SCLogWarning, SCLogConfig for setting vlan stripping
  • create function PortConfSetVlanOffload that enables the vlan stripping and logging

v1

  • add option to enable hardware offload / strip of vlan tags with DPDK API on supported NICs
  • option can be enabled in suricata.yaml

Utilize DPDK API for hardware vlan stripping if supported by NIC.

Ticket: 7330
Copy link

NOTE: This PR may contain new authors.

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.38%. Comparing base (30806ce) to head (e1f6f48).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12014      +/-   ##
==========================================
- Coverage   83.22%   82.38%   -0.84%     
==========================================
  Files         910      904       -6     
  Lines      258136   256357    -1779     
==========================================
- Hits       214831   211211    -3620     
- Misses      43305    45146    +1841     
Flag Coverage Δ
fuzzcorpus 61.49% <ø> (+0.08%) ⬆️
livemode ?
pcap 44.47% <ø> (+<0.01%) ⬆️
suricata-verify 62.73% <ø> (-0.02%) ⬇️
unittests 59.29% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Successfully merging this pull request may close these issues.

1 participant