]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/ethernet/eth.c
net: Push protocol type directly down to header_ops->cache()
[mirror_ubuntu-zesty-kernel.git] / net / ethernet / eth.c
index 44d2b42fda5616017c14f1db3caf23dd3a39935c..5cffb63f481a9a43f8af4c7f5e69e26e45a7aa06 100644 (file)
@@ -233,9 +233,8 @@ EXPORT_SYMBOL(eth_header_parse);
  * @hh: destination cache entry
  * 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;