forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/include/trace/events/fib6.h
....@@ -12,10 +12,10 @@
1212
1313 TRACE_EVENT(fib6_table_lookup,
1414
15
- TP_PROTO(const struct net *net, const struct fib6_info *f6i,
15
+ TP_PROTO(const struct net *net, const struct fib6_result *res,
1616 struct fib6_table *table, const struct flowi6 *flp),
1717
18
- TP_ARGS(net, f6i, table, flp),
18
+ TP_ARGS(net, res, table, flp),
1919
2020 TP_STRUCT__entry(
2121 __field( u32, tb_id )
....@@ -39,7 +39,7 @@
3939 struct in6_addr *in6;
4040
4141 __entry->tb_id = table->tb6_id;
42
- __entry->err = ip6_rt_type_to_error(f6i->fib6_type);
42
+ __entry->err = ip6_rt_type_to_error(res->fib6_type);
4343 __entry->oif = flp->flowi6_oif;
4444 __entry->iif = flp->flowi6_iif;
4545 __entry->tos = ip6_tclass(flp->flowlabel);
....@@ -62,20 +62,20 @@
6262 __entry->dport = 0;
6363 }
6464
65
- if (f6i->fib6_nh.nh_dev) {
66
- __assign_str(name, f6i->fib6_nh.nh_dev);
65
+ if (res->nh && res->nh->fib_nh_dev) {
66
+ __assign_str(name, res->nh->fib_nh_dev);
6767 } else {
6868 __assign_str(name, "-");
6969 }
70
- if (f6i == net->ipv6.fib6_null_entry) {
70
+ if (res->f6i == net->ipv6.fib6_null_entry) {
7171 struct in6_addr in6_zero = {};
7272
7373 in6 = (struct in6_addr *)__entry->gw;
7474 *in6 = in6_zero;
7575
76
- } else if (f6i) {
76
+ } else if (res->nh) {
7777 in6 = (struct in6_addr *)__entry->gw;
78
- *in6 = f6i->fib6_nh.nh_gw;
78
+ *in6 = res->nh->fib_nh_gw6;
7979 }
8080 ),
8181