]> git.proxmox.com Git - ovs.git/commit
datapath: make generic netlink group const
authorGreg Rose <gvrose8192@gmail.com>
Mon, 25 Nov 2019 22:20:44 +0000 (14:20 -0800)
committerBen Pfaff <blp@ovn.org>
Mon, 2 Dec 2019 22:36:49 +0000 (14:36 -0800)
commite515e66a1900feffd4af08c2596fb8d59b07ddd6
tree05791522e3f339ff1bcb3b5117996f8767e0c36f
parent5623ed2d459b55a322981d8caf249ea7fba9641b
datapath: make generic netlink group const

Upstream commit:
    commit 48e48a70c08a8a68f8697f8b30cb83775bda8001
    Author: stephen hemminger <stephen@networkplumber.org>
    Date:   Wed Jul 16 11:25:52 2014 -0700

    openvswitch: make generic netlink group const

    Generic netlink tables can be const.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
The equivalent tables in meter.c and conntrack.c are constified so
it should be safe to do the same for these and will improve
security as well.

Original patch slightly modified for out of tree module.

Passes check-kmod.
Passes Travis.
https://travis-ci.org/gvrose8192/ovs-experimental/builds/616880002

Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
datapath/datapath.c
datapath/datapath.h