kernel: add upstream patches for tps23861 PoE controller
[openwrt/openwrt.git] / target / linux / generic / backport-5.10 / 602-v5.12-net-add-sysfs-attribute-to-control-napi-threaded-mod.patch
index c54e2b2fe283f68d64f2e1c0ea516c763e80e503..9b73f8cbb470da06935d6a31edc2eb2720792283 100644 (file)
@@ -57,7 +57,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
   *    @n: NAPI context
 --- a/net/core/dev.c
 +++ b/net/core/dev.c
-@@ -4281,8 +4281,9 @@ static inline void ____napi_schedule(str
+@@ -4297,8 +4297,9 @@ static inline void ____napi_schedule(str
  
        if (test_bit(NAPI_STATE_THREADED, &napi->state)) {
                /* Paired with smp_mb__before_atomic() in
@@ -69,7 +69,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                 * wake_up_process() when it's not NULL.
                 */
                thread = READ_ONCE(napi->thread);
-@@ -6735,6 +6736,49 @@ static void init_gro_hash(struct napi_st
+@@ -6772,6 +6773,49 @@ static void init_gro_hash(struct napi_st
        napi->gro_bitmask = 0;
  }
  
@@ -121,7 +121,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  {
 --- a/net/core/net-sysfs.c
 +++ b/net/core/net-sysfs.c
-@@ -538,6 +538,45 @@ static ssize_t phys_switch_id_show(struc
+@@ -587,6 +587,45 @@ static ssize_t phys_switch_id_show(struc
  }
  static DEVICE_ATTR_RO(phys_switch_id);
  
@@ -167,7 +167,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  static struct attribute *net_class_attrs[] __ro_after_init = {
        &dev_attr_netdev_group.attr,
        &dev_attr_type.attr,
-@@ -570,6 +609,7 @@ static struct attribute *net_class_attrs
+@@ -619,6 +658,7 @@ static struct attribute *net_class_attrs
        &dev_attr_proto_down.attr,
        &dev_attr_carrier_up_count.attr,
        &dev_attr_carrier_down_count.attr,