From 323f250dcef7ca2e360710058b8c802fc6ee673d Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 24 Nov 2013 19:44:20 +0100 Subject: [PATCH] backports: remove vlan_hw_offload_capable() vlan_hw_offload_capable() was never called by any code. Signed-off-by: Hauke Mehrtens --- 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 e2d77efc728a..6fae15071178 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 -- 2.30.2