History

net: Make table id type u32

A number of VRF patches used 'int' for table id. It should be u32 to be consistent with the rest of the stack. Fixes: 4e3c89920cd3a ("net: Introduce VRF related flags and helpers") 15be405eb2ea9 ("net: Add inet_addr lookup by table") 30bbaa1950055 ("net: Fix up inet_addr_type checks") 021dd3b8a142d ("net: Add routes to the table associated with the device") dc028da54ed35 ("inet: Move VRF table lookup to inlined function") f6d3c19274c74 ("net: FIB tracepoints")

David Ahern committed 11 years ago

Commit 9b8ff511 parent 63b6c136 files · +23 −23Browse files

Showing the changes to include/trace (1 of 6 files). Show all

Unified · Split

include/trace/events/fib.h+3−3
@@ -11,12 +11,12 @@ · 10 unmodified lines
1111
1212 TRACE_EVENT(fib_table_lookup,
1313
14− TP_PROTO(int tb_id, const struct flowi4 *flp),
14+ TP_PROTO(u32 tb_id, const struct flowi4 *flp),
1515
1616 TP_ARGS(tb_id, flp),
1717
1818 TP_STRUCT__entry(
19− __field( int, tb_id )
19+ __field( u32, tb_id )
2020 __field( int, oif )
2121 __field( int, iif )
2222 __field( __u8, tos )
@@ -43,7 +43,7 @@ TRACE_EVENT(fib_table_lookup, · 20 unmodified lines
4343 *p32 = flp->daddr;
4444 ),
4545
46− TP_printk("table %d oif %d iif %d src %pI4 dst %pI4 tos %d scope %d flags %x",
46+ TP_printk("table %u oif %d iif %d src %pI4 dst %pI4 tos %d scope %d flags %x",
4747 __entry->tb_id, __entry->oif, __entry->iif,
4848 __entry->src, __entry->dst, __entry->tos, __entry->scope,
4949 __entry->flags)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t