Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
ea68079f
Commit
ea68079f
authored
Oct 19, 2021
by
Arnaud Ysmal
Committed by
Wojciech Macek
Dec 03, 2021
Browse files
Suport Q-in-Q for mvneta.
parent
a5c2d59e
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/dev/neta/if_mvneta.c
View file @
ea68079f
...
...
@@ -2792,6 +2792,7 @@ mvneta_tx_set_csumflag(struct ifnet *ifp,
struct
mvneta_tx_desc
*
t
,
struct
mbuf
*
m
)
{
struct
ether_header
*
eh
;
struct
ether_vlan_header
*
evh
;
int
csum_flags
;
uint32_t
iphl
,
ipoff
;
struct
ip
*
ip
;
...
...
@@ -2806,6 +2807,9 @@ mvneta_tx_set_csumflag(struct ifnet *ifp,
break
;
case
ETHERTYPE_VLAN
:
ipoff
=
ETHER_HDR_LEN
+
ETHER_VLAN_ENCAP_LEN
;
evh
=
mtod
(
m
,
struct
ether_vlan_header
*
);
if
(
ntohs
(
evh
->
evl_proto
)
==
ETHERTYPE_VLAN
)
ipoff
+=
ETHER_VLAN_ENCAP_LEN
;
break
;
default:
csum_flags
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment