summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Malik <Sandeep.Malik@freescale.com>2014-02-08 17:56:23 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-03-13 21:11:03 (GMT)
commit7dbb9388a8e0fa6e87a8f88281af30c465e24123 (patch)
treeb65ab0337e8f00c72c2b40b56e90a0480a31adfb
parent5ecaa292a0ca79df3734663840edd240f3d020f8 (diff)
downloadlinux-fsl-qoriq-7dbb9388a8e0fa6e87a8f88281af30c465e24123.tar.xz
Adding a field in net_device struct to store
the cii used by ASF for device mapping. Added an extra field cii(Common interface id) in linux struct net_device. This field will be filled with the free cii when ASF try to create the device mapping in asfctrl_create_dev_map(). CQ:ENGR296530 Signed-off-by: Sahil Malhotra <sahilmalhotra@freescale.com> Signed-off-by: Sandeep Malik <Sandeep.Malik@freescale.com> Change-Id: Ifaee2341886e206a5c5d9bf8e847fb5840a267d3 Reviewed-on: http://git.am.freescale.net:8181/8826 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
-rw-r--r--include/linux/netdevice.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 5c92a24..8fa1219 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1207,7 +1207,10 @@ struct net_device {
/* Interface index. Unique device identifier */
int ifindex;
int iflink;
-
+#ifdef CONFIG_AS_FASTPATH
+ /* Common interface id for ASF */
+ int cii;
+#endif
struct net_device_stats stats;
atomic_long_t rx_dropped; /* dropped packets by core network
* Do not use this in drivers.