Skip to content

Commit 703f578

Browse files
Jakub Kicinskidavem330
Jakub Kicinski
authored andcommitted
nfp: fix kdoc warnings on nested structures
Commit 84ce5b9 ("scripts: kernel-doc: improve nested logic to handle multiple identifiers") improved the handling of nested structure definitions in scripts/kernel-doc, and changed the expected format of documentation. This causes new warnings to appear on W=1 builds. Only comment changes. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 67ae44e commit 703f578

File tree

5 files changed

+55
-49
lines changed

5 files changed

+55
-49
lines changed

drivers/net/ethernet/netronome/nfp/bpf/main.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,22 @@ enum pkt_vec {
112112
* @map_elems_in_use: number of elements allocated to offloaded maps
113113
*
114114
* @adjust_head: adjust head capability
115-
* @flags: extra flags for adjust head
116-
* @off_min: minimal packet offset within buffer required
117-
* @off_max: maximum packet offset within buffer required
118-
* @guaranteed_sub: amount of negative adjustment guaranteed possible
119-
* @guaranteed_add: amount of positive adjustment guaranteed possible
115+
* @adjust_head.flags: extra flags for adjust head
116+
* @adjust_head.off_min: minimal packet offset within buffer required
117+
* @adjust_head.off_max: maximum packet offset within buffer required
118+
* @adjust_head.guaranteed_sub: negative adjustment guaranteed possible
119+
* @adjust_head.guaranteed_add: positive adjustment guaranteed possible
120120
*
121121
* @maps: map capability
122-
* @types: supported map types
123-
* @max_maps: max number of maps supported
124-
* @max_elems: max number of entries in each map
125-
* @max_key_sz: max size of map key
126-
* @max_val_sz: max size of map value
127-
* @max_elem_sz: max size of map entry (key + value)
122+
* @maps.types: supported map types
123+
* @maps.max_maps: max number of maps supported
124+
* @maps.max_elems: max number of entries in each map
125+
* @maps.max_key_sz: max size of map key
126+
* @maps.max_val_sz: max size of map value
127+
* @maps.max_elem_sz: max size of map entry (key + value)
128128
*
129129
* @helpers: helper addressess for various calls
130-
* @map_lookup: map lookup helper address
130+
* @helpers.map_lookup: map lookup helper address
131131
*/
132132
struct nfp_app_bpf {
133133
struct nfp_app *app;

drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
* @seq: sequence number of the message
5151
* @count: number of tunnels report in message
5252
* @flags: options part of the request
53-
* @ipv4: dest IPv4 address of active route
54-
* @egress_port: port the encapsulated packet egressed
55-
* @extra: reserved for future use
53+
* @tun_info.ipv4: dest IPv4 address of active route
54+
* @tun_info.egress_port: port the encapsulated packet egressed
55+
* @tun_info.extra: reserved for future use
5656
* @tun_info: tunnels that have sent traffic in reported period
5757
*/
5858
struct nfp_tun_active_tuns {
@@ -132,8 +132,8 @@ struct nfp_ipv4_addr_entry {
132132
* struct nfp_tun_mac_addr - configure MAC address of tunnel EP on NFP
133133
* @reserved: reserved for future use
134134
* @count: number of MAC addresses in the message
135-
* @index: index of MAC address in the lookup table
136-
* @addr: interface MAC address
135+
* @addresses.index: index of MAC address in the lookup table
136+
* @addresses.addr: interface MAC address
137137
* @addresses: series of MACs to offload
138138
*/
139139
struct nfp_tun_mac_addr {

drivers/net/ethernet/netronome/nfp/nfp_net.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ struct nfp_net_tx_desc {
193193

194194
/**
195195
* struct nfp_net_tx_buf - software TX buffer descriptor
196-
* @skb: sk_buff associated with this buffer
196+
* @skb: normal ring, sk_buff associated with this buffer
197+
* @frag: XDP ring, page frag associated with this buffer
197198
* @dma_addr: DMA mapping address of the buffer
198199
* @fidx: Fragment index (-1 for the head and [0..nr_frags-1] for frags)
199200
* @pkt_cnt: Number of packets to be produced out of the skb associated
@@ -377,6 +378,9 @@ struct nfp_net_rx_ring {
377378
* struct nfp_net_r_vector - Per ring interrupt vector configuration
378379
* @nfp_net: Backpointer to nfp_net structure
379380
* @napi: NAPI structure for this ring vec
381+
* @tasklet: ctrl vNIC, tasklet for servicing the r_vec
382+
* @queue: ctrl vNIC, send queue
383+
* @lock: ctrl vNIC, r_vec lock protects @queue
380384
* @tx_ring: Pointer to TX ring
381385
* @rx_ring: Pointer to RX ring
382386
* @xdp_ring: Pointer to an extra TX ring for XDP

drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,29 @@ enum nfp_eth_fec {
9898
* @max_index: max of @index fields of all @ports
9999
* @ports: table of ports
100100
*
101-
* @eth_index: port index according to legacy ethX numbering
102-
* @index: chip-wide first channel index
103-
* @nbi: NBI index
104-
* @base: first channel index (within NBI)
105-
* @lanes: number of channels
106-
* @speed: interface speed (in Mbps)
107-
* @interface: interface (module) plugged in
108-
* @media: media type of the @interface
109-
* @fec: forward error correction mode
110-
* @aneg: auto negotiation mode
111-
* @mac_addr: interface MAC address
112-
* @label_port: port id
113-
* @label_subport: id of interface within port (for split ports)
114-
* @enabled: is enabled?
115-
* @tx_enabled: is TX enabled?
116-
* @rx_enabled: is RX enabled?
117-
* @override_changed: is media reconfig pending?
101+
* @ports.eth_index: port index according to legacy ethX numbering
102+
* @ports.index: chip-wide first channel index
103+
* @ports.nbi: NBI index
104+
* @ports.base: first channel index (within NBI)
105+
* @ports.lanes: number of channels
106+
* @ports.speed: interface speed (in Mbps)
107+
* @ports.interface: interface (module) plugged in
108+
* @ports.media: media type of the @interface
109+
* @ports.fec: forward error correction mode
110+
* @ports.aneg: auto negotiation mode
111+
* @ports.mac_addr: interface MAC address
112+
* @ports.label_port: port id
113+
* @ports.label_subport: id of interface within port (for split ports)
114+
* @ports.enabled: is enabled?
115+
* @ports.tx_enabled: is TX enabled?
116+
* @ports.rx_enabled: is RX enabled?
117+
* @ports.override_changed: is media reconfig pending?
118118
*
119-
* @port_type: one of %PORT_* defines for ethtool
120-
* @port_lanes: total number of lanes on the port (sum of lanes of all subports)
121-
* @is_split: is interface part of a split port
122-
* @fec_modes_supported: bitmap of FEC modes supported
119+
* @ports.port_type: one of %PORT_* defines for ethtool
120+
* @ports.port_lanes: total number of lanes on the port (sum of lanes of all
121+
* subports)
122+
* @ports.is_split: is interface part of a split port
123+
* @ports.fec_modes_supported: bitmap of FEC modes supported
123124
*/
124125
struct nfp_eth_table {
125126
unsigned int count;

drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,17 @@
5656

5757
/**
5858
* struct nfp_resource_entry - Resource table entry
59-
* @owner: NFP CPP Lock, interface owner
60-
* @key: NFP CPP Lock, posix_crc32(name, 8)
61-
* @region: Memory region descriptor
62-
* @name: ASCII, zero padded name
63-
* @reserved
64-
* @cpp_action: CPP Action
65-
* @cpp_token: CPP Token
66-
* @cpp_target: CPP Target ID
67-
* @page_offset: 256-byte page offset into target's CPP address
68-
* @page_size: size, in 256-byte pages
59+
* @mutex: NFP CPP Lock
60+
* @mutex.owner: NFP CPP Lock, interface owner
61+
* @mutex.key: NFP CPP Lock, posix_crc32(name, 8)
62+
* @region: Memory region descriptor
63+
* @region.name: ASCII, zero padded name
64+
* @region.reserved: padding
65+
* @region.cpp_action: CPP Action
66+
* @region.cpp_token: CPP Token
67+
* @region.cpp_target: CPP Target ID
68+
* @region.page_offset: 256-byte page offset into target's CPP address
69+
* @region.page_size: size, in 256-byte pages
6970
*/
7071
struct nfp_resource_entry {
7172
struct nfp_resource_entry_mutex {

0 commit comments

Comments
 (0)