geneve: add dsfield helper function
authorBeniamino Galvani <b.galvani@gmail.com>
Mon, 16 Oct 2023 07:15:24 +0000 (09:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2023 08:57:52 +0000 (09:57 +0100)
commit60a77d11cd5d6501562ff4a297491f65a43c07db
tree2527ab7469c5f86fb392e98ddf8c46dd528ab32e
parent3ae983a603a49e6c80763f747a170b7e987531f3
geneve: add dsfield helper function

Add a helper function to compute the tos/dsfield. In this way, we can
factor out some duplicate code. Also, the helper will be called from
more places in the next commit.

Suggested-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c