]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/net/pkt_cls.h
[LLC]: Kill llc_set_pdu_hdr
[karo-tx-linux.git] / include / net / pkt_cls.h
index b902d24a32563f424d0934a6fb04d504a0b1e3ca..02647fe3d74bfc99ad7f3e836075dbf70a8d96bd 100644 (file)
@@ -352,10 +352,13 @@ tcf_change_indev(struct tcf_proto *tp, char *indev, struct rtattr *indev_tlv)
 static inline int
 tcf_match_indev(struct sk_buff *skb, char *indev)
 {
+       struct net_device *dev;
+
        if (indev[0]) {
-               if  (!skb->input_dev)
+               if  (!skb->iif)
                        return 0;
-               if (strcmp(indev, skb->input_dev->name))
+               dev = __dev_get_by_index(skb->iif);
+               if (!dev || strcmp(indev, dev->name))
                        return 0;
        }