diff options
| author | Justin Pettit <jpettit@nicira.com> | 2011-06-13 19:26:47 -0700 |
|---|---|---|
| committer | Justin Pettit <jpettit@nicira.com> | 2011-06-14 10:28:40 -0700 |
| commit | aebf4235f3938b9e8865d4eb4a767d7584478d30 (patch) | |
| tree | 269086433c1c112284e52878b975c34e1e40684f /lib/netdev-linux.c | |
| parent | f7a0949600eeb1940b5408a080c1d299ced62979 (diff) | |
| download | openvswitch-aebf4235f3938b9e8865d4eb4a767d7584478d30.tar.gz | |
netdev: Add methods to do netdev-specific argument comparisons.
When doing a netdev_open(), a check is first done to make sure the
arguments are equivalent for any open devices with the same name. In
most cases, a simple shash comparison is sufficient. However, IPsec
key configuration is handled by an external program, so it is not pushed
down into the kernel module. Thus, when the "unparse_config" method is
called on an existing IPsec-based vport, a simple comparison with the
returned data will not match the original configuration. This commit
adds code to allow netdev-specific argument comparisons and has
"ipsec_gre" make use of them.
Bug #5575
Diffstat (limited to 'lib/netdev-linux.c')
| -rw-r--r-- | lib/netdev-linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 04c6226a8..166728262 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -2247,6 +2247,7 @@ netdev_linux_change_seq(const struct netdev *netdev) CREATE, \ netdev_linux_destroy, \ NULL, /* set_config */ \ + NULL, /* config_equal */ \ \ netdev_linux_open, \ netdev_linux_close, \ |
