Searched hist:b0ab2fabb5b91da99c189db02e91ae10bc8355c5 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/net/core/ |
H A D | rtnetlink.c | diff b0ab2fabb5b91da99c189db02e91ae10bc8355c5 Thu Jun 26 02:58:25 CDT 2014 Jiri Pirko <jiri@resnulli.us> rtnetlink: allow to register ops without ops->setup set
So far, it is assumed that ops->setup is filled up. But there might be case that ops might make sense even without ->setup. In that case, forbid to newlink and dellink.
This allows to register simple rtnl link ops containing only ->kind. That allows consistent way of passing device kind (either device-kind or slave-kind) to userspace.
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | dev.c | diff b0ab2fabb5b91da99c189db02e91ae10bc8355c5 Thu Jun 26 02:58:25 CDT 2014 Jiri Pirko <jiri@resnulli.us> rtnetlink: allow to register ops without ops->setup set
So far, it is assumed that ops->setup is filled up. But there might be case that ops might make sense even without ->setup. In that case, forbid to newlink and dellink.
This allows to register simple rtnl link ops containing only ->kind. That allows consistent way of passing device kind (either device-kind or slave-kind) to userspace.
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
|