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-dummy.c | |
parent | f7a0949600eeb1940b5408a080c1d299ced62979 (diff) |
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-dummy.c')
-rw-r--r-- | lib/netdev-dummy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c index 472bdb85..9cd06f19 100644 --- a/lib/netdev-dummy.c +++ b/lib/netdev-dummy.c @@ -226,7 +226,8 @@ static const struct netdev_class dummy_class = { netdev_dummy_create, netdev_dummy_destroy, - NULL, + NULL, /* set_config */ + NULL, /* config_equal */ netdev_dummy_open, netdev_dummy_close, |