netfilter: nf_tables: consolidate set description
[platform/kernel/linux-rpi.git] / include / net / llc.h
index df282d9..9c10b12 100644 (file)
@@ -72,7 +72,9 @@ struct llc_sap {
 static inline
 struct hlist_head *llc_sk_dev_hash(struct llc_sap *sap, int ifindex)
 {
-       return &sap->sk_dev_hash[ifindex % LLC_SK_DEV_HASH_ENTRIES];
+       u32 bucket = hash_32(ifindex, LLC_SK_DEV_HASH_BITS);
+
+       return &sap->sk_dev_hash[bucket];
 }
 
 static inline