]> err.no Git - linux-2.6/blobdiff - net/mac80211/wme.c
mac80211: move tx crypto decision
[linux-2.6] / net / mac80211 / wme.c
index 5b8a157975a35dd452bc6e03e17f5dafcae09788..455fadc3d84e558d25c48536a20a1a0b1aea42b0 100644 (file)
@@ -55,7 +55,7 @@ static inline unsigned classify_1d(struct sk_buff *skb, struct Qdisc *qd)
 
        /* check there is a valid IP header present */
        offset = ieee80211_get_hdrlen_from_skb(skb) + 8 /* LLC + proto */;
-       if (skb->protocol != __constant_htons(ETH_P_IP) ||
+       if (skb->protocol != htons(ETH_P_IP) ||
            skb->len < offset + sizeof(*ip))
                return 0;
 
@@ -527,7 +527,7 @@ static struct tcf_proto ** wme_classop_find_tcf(struct Qdisc *qd,
 
 /* this qdisc is classful (i.e. has classes, some of which may have leaf qdiscs attached)
  * - these are the operations on the classes */
-static struct Qdisc_class_ops class_ops =
+static const struct Qdisc_class_ops class_ops =
 {
        .graft = wme_classop_graft,
        .leaf = wme_classop_leaf,
@@ -547,7 +547,7 @@ static struct Qdisc_class_ops class_ops =
 
 
 /* queueing discipline operations */
-static struct Qdisc_ops wme_qdisc_ops =
+static struct Qdisc_ops wme_qdisc_ops __read_mostly =
 {
        .next = NULL,
        .cl_ops = &class_ops,