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

dwc_eqos - fix transmitted vlan tags #40

Merged
merged 1 commit into from
Jan 19, 2024
Merged

dwc_eqos - fix transmitted vlan tags #40

merged 1 commit into from
Jan 19, 2024

Conversation

idigdoug
Copy link
Collaborator

All transmitted VLAN tags were 0. We weren't setting the VlanInput flag, so when inserting VLAN tags, the adapter was using a global value (0) instead of the value from the descriptor ring. Fix.

  • Set the VlanInput flag so that inserted VLAN tags are taken from context descriptor.
  • Add a VLAN ID configuration setting. This is a semi-standard tag, and I couldn't find great details on how it is supposed to work. At present, it just controls the default VLAN tag to use when transmitting. I think some adapters also use it to filter received packets, but I don't think that's a good idea for this driver since NetAdapterCx doesn't support OID_GEN_VLAN_ID.
  • Update Tx path to handle a default VLAN tag. Ended up cleaning things up a bit so the result is shorter.

All transmitted VLAN tags were 0. We weren't setting the VlanInput flag,
so when inserting VLAN tags, the adapter was using a global value (0)
instead of the value from the descriptor ring. Fix.

- Set the VlanInput flag so that inserted VLAN tags are taken from
  context descriptor.
- Add a VLAN ID configuration setting. This is a semi-standard tag, and
  I couldn't find great details on how it is supposed to work. At
  present, it just controls the default VLAN tag to use when transmitting.
  I think some adapters also use it to filter received packets, but I
  don't think that's a good idea for this driver since NetAdapterCx
  doesn't support OID_GEN_VLAN_ID.
- Update Tx path to handle a default VLAN tag. Ended up cleaning things
  up a bit so the result is shorter.
@idigdoug idigdoug merged commit 07fa5d6 into master Jan 19, 2024
2 checks passed
@idigdoug idigdoug deleted the dwc_eqos_vlan branch January 19, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants