ANDROID: Allow vendor modules perform more operationson on sock.

Export netdev_get_name, tcp_send_active_reset functions, allow vendor
modules perform more operations on socks and improve users' online
experience.When users browse websites or watch videos, we will sense
the bad sock is on which device, so that the sock can be switched to
another good device by us, so that the internet service will no longer
be stuck. In a similar scenario, if the user downloads from multiple
devices and the rate of one device is low,we can reset the TCP stream
with a lower rate and establish it on the device with a higher rate.

Bug: 334000512
Change-Id: I9ed90ea9fe6f3dc9f11ae1661ca9f2f5fdad5820
Signed-off-by: Dezhi Huang <huangdezhi@hihonor.com>
(cherry picked from commit 21614c79408f0342363db9874d315fbb3ff6553b)
This commit is contained in:
Dezhi Huang
2024-04-13 19:08:25 +08:00
committed by Treehugger Robot
parent e64a80a096
commit b5ee53c64e
2 changed files with 2 additions and 0 deletions

View File

@@ -927,6 +927,7 @@ out:
up_read(&devnet_rename_sem);
return ret;
}
EXPORT_SYMBOL_GPL(netdev_get_name);
/**
* dev_getbyhwaddr_rcu - find a device by its hardware address

View File

@@ -3487,6 +3487,7 @@ void tcp_send_active_reset(struct sock *sk, gfp_t priority)
*/
trace_tcp_send_reset(sk, NULL);
}
EXPORT_SYMBOL_GPL(tcp_send_active_reset);
/* Send a crossed SYN-ACK during socket establishment.
* WARNING: This routine must only be called when we have already sent