net: add IFF_SKB_TX_SHARED flag to priv_flags
[deliverable/linux.git] / net / ethernet / eth.c
index 44d2b42fda5616017c14f1db3caf23dd3a39935c..27997d35ebd3f405bf1df2a2d2d599bfe7fbbdb9 100644 (file)
@@ -231,11 +231,11 @@ EXPORT_SYMBOL(eth_header_parse);
  * eth_header_cache - fill cache entry from neighbour
  * @neigh: source neighbour
  * @hh: destination cache entry
+ * @type: Ethernet type field
  * Create an Ethernet header template from the neighbour.
  */
-int eth_header_cache(const struct neighbour *neigh, struct hh_cache *hh)
+int eth_header_cache(const struct neighbour *neigh, struct hh_cache *hh, __be16 type)
 {
-       __be16 type = hh->hh_type;
        struct ethhdr *eth;
        const struct net_device *dev = neigh->dev;
 
@@ -340,6 +340,7 @@ void ether_setup(struct net_device *dev)
        dev->addr_len           = ETH_ALEN;
        dev->tx_queue_len       = 1000; /* Ethernet wants good queues */
        dev->flags              = IFF_BROADCAST|IFF_MULTICAST;
+       dev->priv_flags         = IFF_TX_SKB_SHARING;
 
        memset(dev->broadcast, 0xFF, ETH_ALEN);
 
This page took 0.066863 seconds and 5 git commands to generate.