Re: fix vlan handling with tcplro on ix(4)

2023-07-27 Thread Alexander Bluhm
On Thu, Jul 27, 2023 at 09:15:48AM -0700, Chris Cappuccio wrote: > Jan Klemkow [j.klem...@wemelug.de] wrote: > > +#if NVLAN > 0 > > + if (ext.evh) > > + hdrlen += ETHER_VLAN_ENCAP_LEN; > > +#endif > > if

Re: fix vlan handling with tcplro on ix(4)

2023-07-27 Thread Chris Cappuccio
Jan Klemkow [j.klem...@wemelug.de] wrote: > +#if NVLAN > 0 > + if (ext.evh) > + hdrlen += ETHER_VLAN_ENCAP_LEN; > +#endif > if (ext.ip4) > hdrlen += ext.ip4->ip_hl <<

Re: fix vlan handling with tcplro on ix(4)

2023-07-26 Thread Alexander Bluhm
On Wed, Jul 26, 2023 at 11:30:45AM +0200, Jan Klemkow wrote: > Hi, > > I missed the vlan-tag size in the mss calculation of lro packets in > ix(4). This diff add vlan-header detection in ether_extract_headers() > and uses this information to calculate the right mss. > > This fixes forwarding of

fix vlan handling with tcplro on ix(4)

2023-07-26 Thread Jan Klemkow
Hi, I missed the vlan-tag size in the mss calculation of lro packets in ix(4). This diff add vlan-header detection in ether_extract_headers() and uses this information to calculate the right mss. This fixes forwarding of vlan tagged lro packets. ok? bye, Jan Index: dev/pci/if_ix.c