]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/pkt_sched.h
[IPV4]: Consolidate fib_select_default.
[linux-2.6-omap-h63xx.git] / include / net / pkt_sched.h
index 9e22526e80e72b646c2a1f5eab446a88025731d0..ab61809a9616af402d8d197da3fc58a89b05e69c 100644 (file)
@@ -97,10 +97,9 @@ extern int tc_classify(struct sk_buff *skb, struct tcf_proto *tp,
 /* Calculate maximal size of packet seen by hard_start_xmit
    routine of this device.
  */
-static inline unsigned psched_mtu(struct net_device *dev)
+static inline unsigned psched_mtu(const struct net_device *dev)
 {
-       unsigned mtu = dev->mtu;
-       return dev->hard_header ? mtu + dev->hard_header_len : mtu;
+       return dev->mtu + dev->hard_header_len;
 }
 
 #endif