pipes: fix the l2.l2_len and the l[23]_hdr_offset setting behavior of pipe-rx node... 02/15302/5
authorAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 16 Oct 2018 10:04:51 +0000 (12:04 +0200)
committerJohn Lo <loj@cisco.com>
Sat, 20 Oct 2018 15:14:05 +0000 (15:14 +0000)
commit270055a41accbb421d9016eb972fcd4ea0343671
treed87dbae56099b6b5231ca763f19e175fe53db095
parentcef69caf1dcd3a2452d38c5fa516d0b61b56c34a
pipes: fix the l2.l2_len and the l[23]_hdr_offset setting behavior of pipe-rx node to match that of ethernet-input node

Since pipe-rx is a sibling node of ethernet-input, it ought to perform similarly: set l2/l3 header offsets,
and l2.l2_len value if the interface is in the l2 mode.

The use cases of pipes do not assume the tagged traffic, so
assume the simple ethernet header.

Change-Id: I7c9b5f4f2b1402cfbd10513f76cdd59b2db7a7a6
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/vnet/devices/pipe/pipe.c