mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-27 01:31:36 -04:00
!37 fix NewIP coding style problem
Merge pull request !37 from liangbotong/master
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#define bt_dev_path_to_file(idx) bt_dev_path(idx)
|
||||
#define bt_virnet_name(idx) (BT_VIRNET_NAME_PREFIX#idx)
|
||||
|
||||
#define BT_PATHNAME_MAX 256
|
||||
#define BT_VIRNET_MAX_NUM 16
|
||||
#define BT_VIRNET_DATA_HEAD_LEN 2
|
||||
|
||||
@@ -43,7 +42,7 @@
|
||||
*/
|
||||
struct bt_uioc_args {
|
||||
char ifa_name[IFNAMSIZ];
|
||||
char cfile_name[BT_PATHNAME_MAX];
|
||||
char cfile_name[IFNAMSIZ];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -57,7 +57,6 @@ int __init ninet_hooks_init(void)
|
||||
{
|
||||
nip_ninet_ehashfn_lhck_register();
|
||||
nip_ninet_gifconf_lhck_register();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+10
-12
@@ -1523,19 +1523,11 @@ static void __tcp_nip_ack_calc_ssthresh_default(struct tcp_nip_common *ntp, u32
|
||||
ntp->nip_ssthresh = nip_ssthresh;
|
||||
}
|
||||
|
||||
static void __tcp_nip_ack_calc_ssthresh(struct tcp_nip_common *ntp, struct tcp_sock *tp,
|
||||
u32 rtt_tstamp,
|
||||
struct inet_connection_sock *icsk, u32 ack,
|
||||
int icsk_rto_last)
|
||||
static void __tcp_nip_ack_calc_ssthresh(struct tcp_nip_common *ntp, u32 rtt_tstamp,
|
||||
u32 icsk_rto, u32 ack, int icsk_rto_last)
|
||||
{
|
||||
update_nip_bw(&ntp->nip_bw, tp, rtt_tstamp);
|
||||
if (ntp->nip_bw < get_nip_br_max_bw()) {
|
||||
__tcp_nip_ack_calc_ssthresh_bw(ntp, rtt_tstamp, icsk->icsk_rto, ack);
|
||||
return;
|
||||
}
|
||||
|
||||
if (rtt_tstamp >= get_rtt_tstamp_rto_up())
|
||||
__tcp_nip_ack_calc_ssthresh_rto_up(ntp, rtt_tstamp, icsk->icsk_rto,
|
||||
__tcp_nip_ack_calc_ssthresh_rto_up(ntp, rtt_tstamp, icsk_rto,
|
||||
ack, icsk_rto_last);
|
||||
else if (rtt_tstamp >= get_rtt_tstamp_high())
|
||||
__tcp_nip_ack_calc_ssthresh_rtt_high(ntp, rtt_tstamp, ack);
|
||||
@@ -1564,7 +1556,13 @@ static void tcp_nip_ack_calc_ssthresh(struct sock *sk, u32 ack, int icsk_rto_las
|
||||
if (skb_snd_tstamp) {
|
||||
u32 rtt_tstamp = tp->rcv_tstamp - skb_snd_tstamp;
|
||||
|
||||
__tcp_nip_ack_calc_ssthresh(ntp, tp, rtt_tstamp, icsk, ack, icsk_rto_last);
|
||||
update_nip_bw(&ntp->nip_bw, tp, rtt_tstamp);
|
||||
if (ntp->nip_bw < get_nip_br_max_bw())
|
||||
__tcp_nip_ack_calc_ssthresh_bw(ntp, rtt_tstamp, icsk->icsk_rto,
|
||||
ack);
|
||||
else
|
||||
__tcp_nip_ack_calc_ssthresh(ntp, rtt_tstamp, icsk->icsk_rto,
|
||||
ack, icsk_rto_last);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user