netdevsim: Set offsets to various protocol layers
authorIdo Schimmel <idosch@mellanox.com>
Sun, 15 Sep 2019 06:46:35 +0000 (09:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2019 19:39:27 +0000 (21:39 +0200)
commit58a406def4374c08d063ec9ff97da74a74e1a9bf
tree551c051e3986aaaf02cdf0e21af5f7ef3e7a9745
parentdb539cae12a3456cc710855b345542ccd2946e25
netdevsim: Set offsets to various protocol layers

The driver periodically generates "trapped" UDP packets that it then
passes on to devlink. Set the offsets to the various protocol layers.

This is a prerequisite to the next patch, where drop monitor is taught
to check that the offset to the MAC header was set.

Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/dev.c