pg: misc improvements and fixes 46/41246/5
authorBenoît Ganne <[email protected]>
Fri, 5 Jul 2024 12:09:35 +0000 (14:09 +0200)
committerDave Wallace <[email protected]>
Thu, 12 Dec 2024 14:45:14 +0000 (14:45 +0000)
commit8fadde6f0154a735dce2624d56b36bf2276b6a7f
tree0ea12e83c4d2d546df9142ec0e65f03f5bf3e044
parent504a7d1c93a2f73023d2552a49df0d6d43970830
pg: misc improvements and fixes

1) pg can typically injects packets in ethernet-input, ip4-input or
ip6-input. Make sure offload offsets are correctly set for ip4-input and
ip6-input.
2) add hw-addr support for ethernet mode (only available through cli)
3) refactor pg creation code to improve the readability by using
data structure pg_interface_args_t
4) fix the pg input and output traces to use headers according to
pg interface mode
5) introduce pg interface flags i.e. checksum, gso, gro

Type: improvement

Change-Id: Iffed502e9c6357d7ef8e8a72217867e8297236aa
Signed-off-by: Benoît Ganne <[email protected]>
Signed-off-by: Mohsin Kazmi <[email protected]>
src/vnet/pg/cli.c
src/vnet/pg/input.c
src/vnet/pg/output.c
src/vnet/pg/pg.h
src/vnet/pg/pg_api.c
src/vnet/pg/stream.c
test/test_pg_stream.py