[PATCH 09/15] backports: remove vlan_hw_offload_capable()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



vlan_hw_offload_capable() was never called by any code.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 backport/backport-include/linux/if_vlan.h |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/backport/backport-include/linux/if_vlan.h b/backport/backport-include/linux/if_vlan.h
index e2d77ef..6fae150 100644
--- a/backport/backport-include/linux/if_vlan.h
+++ b/backport/backport-include/linux/if_vlan.h
@@ -10,13 +10,6 @@
 
 #define __vlan_find_dev_deep(__real_dev, __vlan_proto, __vlan_id) __vlan_find_dev_deep(__real_dev, __vlan_id) 
 
-static inline bool vlan_hw_offload_capable(netdev_features_t features,
-					   __be16 proto)
-{
-	if (proto == htons(ETH_P_8021Q) && features & NETIF_F_HW_VLAN_CTAG_TX)
-		return true;
-	return false;
-}
 #endif 
 
 #ifndef VLAN_PRIO_MASK
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux