[ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath
blp at ovn.org
Fri Mar 13 15:56:42 UTC 2020
On Fri, Mar 13, 2020 at 01:04:07AM +0000, Yi Yang (杨燚)-云服务集团 wrote:
> Per my understanding, Ben meant a build system (which isn't Linux
> probably, it doesn't have include/linux/if_packet.h) should be able to
> build tpacket_v3 code in order that built-out binary can work on Linux
> system with tpacket_v3 feature, this is Ben's point, that is why he
> wanted me to add include/linux/if_packet.h in ovs repo.
> Ben, can you help double confirm if include/linux/if_packet.h in ovs
> is necessary?
I think my meaning was misunderstood. Linux always has if_packet.h.
Only recent enough Linux has TPACKET_V3 in if_packet.h. If the system
is Linux but the TPACKET_V3 types and constants are not defined in
if_packet.h, then the build system should define them.
More information about the dev