commit | 5e51fe6f4472510a85e637907e24d4fbe5e39489 | [log] [tgz] |
---|---|---|
author | Gao Feng <gfree.wind@vip.163.com> | Fri Dec 01 16:33:03 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Dec 03 09:46:42 2017 -0500 |
tree | 9029011a1792dc76e1b35cd95396706082d5517c | |
parent | 0653cb2e1d1d8c1e965533ce3f167251d5e7cdd1 [diff] |
ipvlan: Add new func ipvlan_is_valid_dev instead of duplicated codes There are multiple duplicated condition checks in the current codes, so I add the new func ipvlan_is_valid_dev instead of the duplicated codes to check if the netdev is real ipvlan dev. Signed-off-by: Gao Feng <gfree.wind@vip.163.com> Signed-off-by: David S. Miller <davem@davemloft.net>