net: drivers: kill two unused macro definitions
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 13 May 2011 21:08:47 +0000 (21:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 May 2011 22:01:15 +0000 (18:01 -0400)
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bonding.h
drivers/net/veth.c

index d08362e1a0dd124d1d1afe375583170d4c65db49..ea1d005be92d81455e66805179fe928382f27476 100644 (file)
               netif_running(dev)                       && \
               netif_carrier_ok(dev))
 
-/*
- * Checks whether bond is ready for transmit.
- *
- * Caller must hold bond->lock
- */
-#define BOND_IS_OK(bond)                            \
-                  (((bond)->dev->flags & IFF_UP) && \
-                   netif_running((bond)->dev)    && \
-                   ((bond)->slave_cnt > 0))
-
 /*
  * Checks whether slave is ready for transmit.
  */
index 3b0151a2a31bec76c7e401d481a9b67e9122c20e..8461576fa015439f4f9e183f25ad008414d4b0e1 100644 (file)
@@ -22,7 +22,6 @@
 
 #define MIN_MTU 68             /* Min L3 MTU */
 #define MAX_MTU 65535          /* Max L3 MTU (arbitrary) */
-#define MTU_PAD (ETH_HLEN + 4)  /* Max difference between L2 and L3 size MTU */
 
 struct veth_net_stats {
        unsigned long   rx_packets;