* [zen-kernel-zen-kernel:5.14/bbr2 16/28] net/ipv4/tcp_bbr2.c:545:11: error: no member named 'skc_v6_daddr' in 'struct sock_common'; did you mean 'skc_daddr'?
@ 2021-09-04 20:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-04 20:14 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 7486 bytes --]
tree: https://github.com/zen-kernel/zen-kernel 5.14/bbr2
head: fc632709b757850d62d2b295f749e80c19093da3
commit: 2f696e043b20dd35d154e96698f80ba91db53d07 [16/28] net-tcp_bbr: v2: BBRv2 ("bbr2") congestion control for Linux TCP
config: i386-randconfig-r031-20210905 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6fe2beba7d2a41964af658c8c59dd172683ef739)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/zen-kernel/zen-kernel/commit/2f696e043b20dd35d154e96698f80ba91db53d07
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.14/bbr2
git checkout 2f696e043b20dd35d154e96698f80ba91db53d07
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> net/ipv4/tcp_bbr2.c:545:11: error: no member named 'skc_v6_daddr' in 'struct sock_common'; did you mean 'skc_daddr'?
&sk->sk_v6_daddr, dport);
^
include/net/sock.h:384:34: note: expanded from macro 'sk_v6_daddr'
#define sk_v6_daddr __sk_common.skc_v6_daddr
^
include/net/sock.h:169:11: note: 'skc_daddr' declared here
__be32 skc_daddr;
^
1 error generated.
vim +545 net/ipv4/tcp_bbr2.c
500
501 static u32 bbr_tso_segs_goal(struct sock *sk);
502 static void bbr_debug(struct sock *sk, u32 acked,
503 const struct rate_sample *rs, struct bbr_context *ctx)
504 {
505 static const char ca_states[] = {
506 [TCP_CA_Open] = 'O',
507 [TCP_CA_Disorder] = 'D',
508 [TCP_CA_CWR] = 'C',
509 [TCP_CA_Recovery] = 'R',
510 [TCP_CA_Loss] = 'L',
511 };
512 static const char mode[] = {
513 'G', /* Growing - BBR_STARTUP */
514 'D', /* Drain - BBR_DRAIN */
515 'W', /* Window - BBR_PROBE_BW */
516 'M', /* Min RTT - BBR_PROBE_RTT */
517 };
518 static const char ack_phase[] = { /* bbr_ack_phase strings */
519 'I', /* BBR_ACKS_INIT - 'Init' */
520 'R', /* BBR_ACKS_REFILLING - 'Refilling' */
521 'B', /* BBR_ACKS_PROBE_STARTING - 'Before' */
522 'F', /* BBR_ACKS_PROBE_FEEDBACK - 'Feedback' */
523 'A', /* BBR_ACKS_PROBE_STOPPING - 'After' */
524 };
525 struct tcp_sock *tp = tcp_sk(sk);
526 struct bbr *bbr = inet_csk_ca(sk);
527 const u32 una = tp->snd_una - bbr->debug.snd_isn;
528 const u32 fack = tcp_highest_sack_seq(tp);
529 const u16 dport = ntohs(inet_sk(sk)->inet_dport);
530 bool is_port_match = (bbr_debug_port_mask &&
531 ((dport & bbr_debug_port_mask) == 0));
532 char debugmsg[320];
533
534 if (sk->sk_state == TCP_SYN_SENT)
535 return; /* no bbr_init() yet if SYN retransmit -> CA_Loss */
536
537 if (!tp->snd_cwnd || tp->snd_cwnd > bbr_cwnd_warn_val) {
538 char addr[INET6_ADDRSTRLEN + 10] = { 0 };
539
540 if (sk->sk_family == AF_INET)
541 snprintf(addr, sizeof(addr), "%pI4:%u",
542 &inet_sk(sk)->inet_daddr, dport);
543 else if (sk->sk_family == AF_INET6)
544 snprintf(addr, sizeof(addr), "%pI6:%u",
> 545 &sk->sk_v6_daddr, dport);
546
547 WARN_ONCE(1,
548 "BBR %s cwnd alert: %u "
549 "snd_una: %u ca: %d pacing_gain: %u cwnd_gain: %u "
550 "bw: %u rtt: %u min_rtt: %u "
551 "acked: %u tso_segs: %u "
552 "bw: %d %ld %d pif: %u\n",
553 addr, tp->snd_cwnd,
554 una, inet_csk(sk)->icsk_ca_state,
555 bbr->pacing_gain, bbr->cwnd_gain,
556 bbr_max_bw(sk), (tp->srtt_us >> 3), bbr->min_rtt_us,
557 acked, bbr_tso_segs_goal(sk),
558 rs->delivered, rs->interval_us, rs->is_retrans,
559 tcp_packets_in_flight(tp));
560 }
561
562 if (likely(!bbr_debug_with_printk && !bbr_debug_ftrace))
563 return;
564
565 if (!sock_flag(sk, SOCK_DBG) && !is_port_match)
566 return;
567
568 if (!ctx->log && !tp->app_limited && !(bbr_flags & FLAG_DEBUG_VERBOSE))
569 return;
570
571 if (ipv4_is_loopback(inet_sk(sk)->inet_daddr) &&
572 !(bbr_flags & FLAG_DEBUG_LOOPBACK))
573 return;
574
575 snprintf(debugmsg, sizeof(debugmsg) - 1,
576 "BBR %pI4:%-5u %5u,%03u:%-7u %c "
577 "%c %2u br %2u cr %2d rtt %5ld d %2d i %5ld mrtt %d %cbw %llu "
578 "bw %llu lb %llu ib %llu qb %llu "
579 "a %u if %2u %c %c dl %u l %u al %u # %u t %u %c %c "
580 "lr %d er %d ea %d bwl %lld il %d ih %d c %d "
581 "v %d %c %u %c %s\n",
582 &inet_sk(sk)->inet_daddr, dport,
583 una / 1000, una % 1000, fack - tp->snd_una,
584 ca_states[inet_csk(sk)->icsk_ca_state],
585 bbr->debug.undo ? '@' : mode[bbr->mode],
586 tp->snd_cwnd,
587 bbr_extra_acked(sk), /* br (legacy): extra_acked */
588 rs->tx_in_flight, /* cr (legacy): tx_inflight */
589 rs->rtt_us,
590 rs->delivered,
591 rs->interval_us,
592 bbr->min_rtt_us,
593 rs->is_app_limited ? '_' : 'l',
594 bbr_rate_kbps(sk, ctx->sample_bw), /* lbw: latest sample bw */
595 bbr_rate_kbps(sk, bbr_max_bw(sk)), /* bw: max bw */
596 0ULL, /* lb: [obsolete] */
597 0ULL, /* ib: [obsolete] */
598 (u64)sk->sk_pacing_rate * 8 / 1000,
599 acked,
600 tcp_packets_in_flight(tp),
601 rs->is_ack_delayed ? 'd' : '.',
602 bbr->round_start ? '*' : '.',
603 tp->delivered, tp->lost,
604 tp->app_limited,
605 0, /* #: [obsolete] */
606 ctx->target_cwnd,
607 tp->reord_seen ? 'r' : '.', /* r: reordering seen? */
608 ca_states[bbr->prev_ca_state],
609 (rs->lost + rs->delivered) > 0 ?
610 (1000 * rs->lost /
611 (rs->lost + rs->delivered)) : 0, /* lr: loss rate x1000 */
612 (rs->delivered) > 0 ?
613 (1000 * rs->delivered_ce /
614 (rs->delivered)) : 0, /* er: ECN rate x1000 */
615 1000 * bbr->ecn_alpha >> BBR_SCALE, /* ea: ECN alpha x1000 */
616 bbr->bw_lo == ~0U ?
617 -1 : (s64)bbr_rate_kbps(sk, bbr->bw_lo), /* bwl */
618 bbr->inflight_lo, /* il */
619 bbr->inflight_hi, /* ih */
620 bbr->bw_probe_up_cnt, /* c */
621 2, /* v: version */
622 bbr->debug.event,
623 bbr->cycle_idx,
624 ack_phase[bbr->ack_phase],
625 bbr->bw_probe_samples ? "Y" : "N");
626 debugmsg[sizeof(debugmsg) - 1] = 0;
627
628 /* printk takes a higher precedence. */
629 if (bbr_debug_with_printk)
630 printk(KERN_DEBUG "%s", debugmsg);
631
632 if (unlikely(bbr->debug.undo))
633 bbr->debug.undo = 0;
634 }
635
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33464 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-04 20:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04 20:14 [zen-kernel-zen-kernel:5.14/bbr2 16/28] net/ipv4/tcp_bbr2.c:545:11: error: no member named 'skc_v6_daddr' in 'struct sock_common'; did you mean 'skc_daddr'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.