]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2459ef64b8997e7a8ee7a779ada5a71591983263
tree551c051e3986aaaf02cdf0e21af5f7ef3e7a9745
parent0f877ef825894b012611b4db78c73c01531d8dd8
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