On Thu, Jan 26, 2023 at 11:37:51AM +0100, Christian Weisgerber wrote: > Jan Klemkow: > > > we have several drivers which have to parse the content of mbufs. This > > diff suggest a central parsing function for this. Thus, we can reduce > > redundant code. > > > > I just start with ix(4) and ixl(4) because it was easy to test for me. > > But, this could also improve em(4), igc(4), ale(4) and oce(4). > > Here's the corresponding change for em(4). > This only affects 82575, 82576, i350, and i210. > Tested on i210. > > ok? >
The ether_extract_headers() diff was reverted, because is wrong for the cases other than tcp/udp/icmp. We need to fix it and recommit again before continue.