7020-net-add-custom-NETIF-flags.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 608986fc6b41633753701d5df9c1ab6a13856608 Mon Sep 17 00:00:00 2001
  2. From: Madalin Bucur <madalin.bucur@freescale.com>
  3. Date: Mon, 11 Jul 2016 14:14:15 +0800
  4. Subject: [PATCH 20/70] net: add custom NETIF flags
  5. commit 6a53650c0c4513429d91e6ad7253340f3d3b9da5
  6. [context adjustment]
  7. These flags are used by DPAA Ethernet to impose different behaviors
  8. in the networking stack.
  9. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com>
  10. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
  11. Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
  12. ---
  13. include/linux/netdev_features.h | 6 ++++++
  14. 1 file changed, 6 insertions(+)
  15. --- a/include/linux/netdev_features.h
  16. +++ b/include/linux/netdev_features.h
  17. @@ -68,6 +68,9 @@ enum {
  18. NETIF_F_HW_VLAN_STAG_FILTER_BIT,/* Receive filtering on VLAN STAGs */
  19. NETIF_F_HW_L2FW_DOFFLOAD_BIT, /* Allow L2 Forwarding in Hardware */
  20. NETIF_F_BUSY_POLL_BIT, /* Busy poll */
  21. + /* Freescale DPA support */
  22. + NETIF_F_HW_QDISC_BIT, /* Supports hardware Qdisc */
  23. + NETIF_F_HW_ACCEL_MQ_BIT, /* Hardware-accelerated multiqueue */
  24. /*
  25. * Add your fresh new feature above and remember to update
  26. @@ -126,6 +129,9 @@ enum {
  27. #define NETIF_F_HW_VLAN_STAG_TX __NETIF_F(HW_VLAN_STAG_TX)
  28. #define NETIF_F_HW_L2FW_DOFFLOAD __NETIF_F(HW_L2FW_DOFFLOAD)
  29. #define NETIF_F_BUSY_POLL __NETIF_F(BUSY_POLL)
  30. +/* Freescale DPA support */
  31. +#define NETIF_F_HW_QDISC __NETIF_F(HW_QDISC)
  32. +#define NETIF_F_HW_ACCEL_MQ __NETIF_F(HW_ACCEL_MQ)
  33. /* Finds the next feature with the highest number of the range of start till 0.
  34. */