Skip to content

Commit 29bbf5d

Browse files
chelsiocudbgdavem330
authored andcommitted
cxgb4: update kernel-doc line comments
Update several kernel-doc line comments to fix warnings reported by make W=1. Fixes following class of warnings reported by make W=1 in several places: l2t.c:616: warning: Cannot understand * @dev: net_device pointer t4_hw.c:3175: warning: Function parameter or member 'adap' not described in 't4_get_exprom_version' t4_hw.c:3175: warning: Excess function parameter 'adapter' description in 't4_get_exprom_version' Fixes: 56d36be ("cxgb4: Add HW and FW support code") Fixes: fd3a479 ("cxgb4: Add packet queues and packet DMA code") Fixes: 26f7cbc ("cxgb4: Don't attempt to upgrade T4 firmware when cxgb4 will end up as a slave") Fixes: 793dad9 ("RDMA/cxgb4: Fix bug for active and passive LE hash collision path") Fixes: ba3f8cd ("cxgb4: Add support in cxgb4 to get expansion rom version via ethtool") Fixes: f750265 ("cxgb4: Add API to alloc l2t entry; also update existing ones") Fixes: ddc7740 ("cxgb4: Decode link down reason code obtained from firmware") Fixes: 193c4c2 ("cxgb4: Update T6 Buffer Group and Channel Mappings") Fixes: 8f46d46 ("cxgb4: Use Firmware params to get buffer-group map") Fixes: a456950 ("cxgb4: time stamping interface for PTP") Fixes: 9c33e42 ("cxgb4: Add PTP Hardware Clock (PHC) support") Fixes: c3168ca ("cxgb4/cxgbvf: Handle 32-bit fw port capabilities") Fixes: 5ccf9d0 ("cxgb4: update API for TP indirect register access") Fixes: 3bdb376 ("cxgb4: introduce SMT ops to prepare for SMAC rewrite support") Fixes: 736c3b9 ("cxgb4: collect egress and ingress SGE queue contexts") Fixes: f56ec67 ("cxgb4: Add support for ethtool i2c dump") Fixes: 9d5fd92 ("cxgb4/cxgb4vf: add support for ndo_set_vf_vlan") Fixes: 98f3697 ("cxgb4: add tc flower match support for tunnel VNI") Fixes: 02d805d ("cxgb4: use new fw interface to get the VIN and smt index") Fixes: 3f8cfd0 ("cxgb4/cxgb4vf: Program hash region for {t4/t4vf}_change_mac()") Fixes: d429005 ("cxgb4/cxgb4vf: Add support for SGE doorbell queue timer") Fixes: 0e395b3 ("cxgb4: add FLOWC based QoS offload") Signed-off-by: Rahul Lakkireddy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 00e31cf commit 29bbf5d

File tree

8 files changed

+38
-30
lines changed

8 files changed

+38
-30
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static void fw_caps_to_lmm(enum fw_port_type port_type,
588588
/**
589589
* lmm_to_fw_caps - translate ethtool Link Mode Mask to Firmware
590590
* capabilities
591-
* @et_lmm: ethtool Link Mode Mask
591+
* @link_mode_mask: ethtool Link Mode Mask
592592
*
593593
* Translate ethtool Link Mode Mask into a Firmware Port capabilities
594594
* value.

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ static int set_rxmode(struct net_device *dev, int mtu, bool sleep_ok)
449449
* or -1
450450
* @addr: the new MAC address value
451451
* @persist: whether a new MAC allocation should be persistent
452-
* @add_smt: if true also add the address to the HW SMT
452+
* @smt_idx: the destination to store the new SMT index.
453453
*
454454
* Modifies an MPS filter and sets it to the new MAC address if
455455
* @tcam_idx >= 0, or adds the MAC address to a new filter if
@@ -1615,6 +1615,7 @@ static int tid_init(struct tid_info *t)
16151615
* @stid: the server TID
16161616
* @sip: local IP address to bind server to
16171617
* @sport: the server's TCP port
1618+
* @vlan: the VLAN header information
16181619
* @queue: queue to direct messages from this server to
16191620
*
16201621
* Create an IP server for the given port and address.

drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ int cxgb4_ptp_redirect_rx_packet(struct adapter *adapter, struct port_info *pi)
194194
}
195195

196196
/**
197+
* cxgb4_ptp_adjfreq - Adjust frequency of PHC cycle counter
197198
* @ptp: ptp clock structure
198199
* @ppb: Desired frequency change in parts per billion
199200
*
@@ -229,7 +230,7 @@ static int cxgb4_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb)
229230

230231
/**
231232
* cxgb4_ptp_fineadjtime - Shift the time of the hardware clock
232-
* @ptp: ptp clock structure
233+
* @adapter: board private structure
233234
* @delta: Desired change in nanoseconds
234235
*
235236
* Adjust the timer by resetting the timecounter structure.

drivers/net/ethernet/chelsio/cxgb4/l2t.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ struct l2t_entry *t4_l2t_alloc_switching(struct adapter *adap, u16 vlan,
609609
}
610610

611611
/**
612+
* cxgb4_l2t_alloc_switching - Allocates an L2T entry for switch filters
612613
* @dev: net_device pointer
613614
* @vlan: VLAN Id
614615
* @port: Associated port

drivers/net/ethernet/chelsio/cxgb4/sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ struct sched_class *cxgb4_sched_class_alloc(struct net_device *dev,
598598
/**
599599
* cxgb4_sched_class_free - free a scheduling class
600600
* @dev: net_device pointer
601-
* @e: scheduling class
601+
* @classid: scheduling class id to free
602602
*
603603
* Frees a scheduling class if there are no users.
604604
*/

drivers/net/ethernet/chelsio/cxgb4/sge.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static void deferred_unmap_destructor(struct sk_buff *skb)
302302

303303
/**
304304
* free_tx_desc - reclaims Tx descriptors and their buffers
305-
* @adapter: the adapter
305+
* @adap: the adapter
306306
* @q: the Tx queue to reclaim descriptors from
307307
* @n: the number of descriptors to reclaim
308308
* @unmap: whether the buffers should be unmapped for DMA
@@ -722,6 +722,7 @@ static inline unsigned int flits_to_desc(unsigned int n)
722722
/**
723723
* is_eth_imm - can an Ethernet packet be sent as immediate data?
724724
* @skb: the packet
725+
* @chip_ver: chip version
725726
*
726727
* Returns whether an Ethernet packet is small enough to fit as
727728
* immediate data. Return value corresponds to headroom required.
@@ -749,6 +750,7 @@ static inline int is_eth_imm(const struct sk_buff *skb, unsigned int chip_ver)
749750
/**
750751
* calc_tx_flits - calculate the number of flits for a packet Tx WR
751752
* @skb: the packet
753+
* @chip_ver: chip version
752754
*
753755
* Returns the number of flits needed for a Tx WR for the given Ethernet
754756
* packet, including the needed WR and CPL headers.
@@ -804,6 +806,7 @@ static inline unsigned int calc_tx_flits(const struct sk_buff *skb,
804806
/**
805807
* calc_tx_descs - calculate the number of Tx descriptors for a packet
806808
* @skb: the packet
809+
* @chip_ver: chip version
807810
*
808811
* Returns the number of Tx descriptors needed for the given Ethernet
809812
* packet, including the needed WR and CPL headers.
@@ -2408,9 +2411,9 @@ static void eosw_txq_flush_pending_skbs(struct sge_eosw_txq *eosw_txq)
24082411

24092412
/**
24102413
* cxgb4_ethofld_send_flowc - Send ETHOFLD flowc request to bind eotid to tc.
2411-
* @dev - netdevice
2412-
* @eotid - ETHOFLD tid to bind/unbind
2413-
* @tc - traffic class. If set to FW_SCHED_CLS_NONE, then unbinds the @eotid
2414+
* @dev: netdevice
2415+
* @eotid: ETHOFLD tid to bind/unbind
2416+
* @tc: traffic class. If set to FW_SCHED_CLS_NONE, then unbinds the @eotid
24142417
*
24152418
* Send a FLOWC work request to bind an ETHOFLD TID to a traffic class.
24162419
* If @tc is set to FW_SCHED_CLS_NONE, then the @eotid is unbound from
@@ -2689,7 +2692,6 @@ static inline unsigned int calc_tx_flits_ofld(const struct sk_buff *skb)
26892692

26902693
/**
26912694
* txq_stop_maperr - stop a Tx queue due to I/O MMU exhaustion
2692-
* @adap: the adapter
26932695
* @q: the queue to stop
26942696
*
26952697
* Mark a Tx queue stopped due to I/O MMU exhaustion and resulting
@@ -3284,7 +3286,7 @@ enum {
32843286

32853287
/**
32863288
* t4_systim_to_hwstamp - read hardware time stamp
3287-
* @adap: the adapter
3289+
* @adapter: the adapter
32883290
* @skb: the packet
32893291
*
32903292
* Read Time Stamp from MPS packet and insert in skb which
@@ -3318,8 +3320,9 @@ static noinline int t4_systim_to_hwstamp(struct adapter *adapter,
33183320

33193321
/**
33203322
* t4_rx_hststamp - Recv PTP Event Message
3321-
* @adap: the adapter
3323+
* @adapter: the adapter
33223324
* @rsp: the response queue descriptor holding the RX_PKT message
3325+
* @rxq: the response queue holding the RX_PKT message
33233326
* @skb: the packet
33243327
*
33253328
* PTP enabled and MPS packet, read HW timestamp
@@ -3343,7 +3346,7 @@ static int t4_rx_hststamp(struct adapter *adapter, const __be64 *rsp,
33433346

33443347
/**
33453348
* t4_tx_hststamp - Loopback PTP Transmit Event Message
3346-
* @adap: the adapter
3349+
* @adapter: the adapter
33473350
* @skb: the packet
33483351
* @dev: the ingress net device
33493352
*

drivers/net/ethernet/chelsio/cxgb4/smt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ static void t4_smte_free(struct smt_entry *e)
103103
}
104104

105105
/**
106+
* cxgb4_smt_release - Release SMT entry
106107
* @e: smt entry to release
107108
*
108109
* Releases ref count and frees up an smt entry from SMT table
@@ -231,6 +232,7 @@ static struct smt_entry *t4_smt_alloc_switching(struct adapter *adap, u16 pfvf,
231232
}
232233

233234
/**
235+
* cxgb4_smt_alloc_switching - Allocates an SMT entry for switch filters.
234236
* @dev: net_device pointer
235237
* @smac: MAC address to add to SMT
236238
* Returns pointer to the SMT entry created

drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3163,7 +3163,7 @@ int t4_get_tp_version(struct adapter *adapter, u32 *vers)
31633163

31643164
/**
31653165
* t4_get_exprom_version - return the Expansion ROM version (if any)
3166-
* @adapter: the adapter
3166+
* @adap: the adapter
31673167
* @vers: where to place the version
31683168
*
31693169
* Reads the Expansion ROM header from FLASH and returns the version
@@ -5310,7 +5310,7 @@ static unsigned int t4_use_ldst(struct adapter *adap)
53105310
* @cmd: TP fw ldst address space type
53115311
* @vals: where the indirect register values are stored/written
53125312
* @nregs: how many indirect registers to read/write
5313-
* @start_idx: index of first indirect register to read/write
5313+
* @start_index: index of first indirect register to read/write
53145314
* @rw: Read (1) or Write (0)
53155315
* @sleep_ok: if true we may sleep while awaiting command completion
53165316
*
@@ -6115,7 +6115,7 @@ void t4_pmrx_get_stats(struct adapter *adap, u32 cnt[], u64 cycles[])
61156115

61166116
/**
61176117
* compute_mps_bg_map - compute the MPS Buffer Group Map for a Port
6118-
* @adap: the adapter
6118+
* @adapter: the adapter
61196119
* @pidx: the port index
61206120
*
61216121
* Computes and returns a bitmap indicating which MPS buffer groups are
@@ -6252,7 +6252,7 @@ static unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx)
62526252

62536253
/**
62546254
* t4_get_tp_ch_map - return TP ingress channels associated with a port
6255-
* @adapter: the adapter
6255+
* @adap: the adapter
62566256
* @pidx: the port index
62576257
*
62586258
* Returns a bitmap indicating which TP Ingress Channels are associated
@@ -6589,7 +6589,7 @@ int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
65896589
* @phy_addr: the PHY address
65906590
* @mmd: the PHY MMD to access (0 for clause 22 PHYs)
65916591
* @reg: the register to write
6592-
* @valp: value to write
6592+
* @val: value to write
65936593
*
65946594
* Issues a FW command through the given mailbox to write a PHY register.
65956595
*/
@@ -6615,7 +6615,7 @@ int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
66156615

66166616
/**
66176617
* t4_sge_decode_idma_state - decode the idma state
6618-
* @adap: the adapter
6618+
* @adapter: the adapter
66196619
* @state: the state idma is stuck in
66206620
*/
66216621
void t4_sge_decode_idma_state(struct adapter *adapter, int state)
@@ -6782,7 +6782,7 @@ void t4_sge_decode_idma_state(struct adapter *adapter, int state)
67826782
* t4_sge_ctxt_flush - flush the SGE context cache
67836783
* @adap: the adapter
67846784
* @mbox: mailbox to use for the FW command
6785-
* @ctx_type: Egress or Ingress
6785+
* @ctxt_type: Egress or Ingress
67866786
*
67876787
* Issues a FW command through the given mailbox to flush the
67886788
* SGE context cache.
@@ -6809,7 +6809,7 @@ int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox, int ctxt_type)
68096809

68106810
/**
68116811
* t4_read_sge_dbqtimers - read SGE Doorbell Queue Timer values
6812-
* @adap - the adapter
6812+
* @adap: the adapter
68136813
* @ndbqtimers: size of the provided SGE Doorbell Queue Timer table
68146814
* @dbqtimers: SGE Doorbell Queue Timer table
68156815
*
@@ -7092,6 +7092,7 @@ static int t4_fw_halt(struct adapter *adap, unsigned int mbox, int force)
70927092
/**
70937093
* t4_fw_restart - restart the firmware by taking the uP out of RESET
70947094
* @adap: the adapter
7095+
* @mbox: mailbox to use for the FW command
70957096
* @reset: if we want to do a RESET to restart things
70967097
*
70977098
* Restart firmware previously halted by t4_fw_halt(). On successful
@@ -7630,6 +7631,8 @@ int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf,
76307631
* @nmac: number of MAC addresses needed (1 to 5)
76317632
* @mac: the MAC addresses of the VI
76327633
* @rss_size: size of RSS table slice associated with this VI
7634+
* @vivld: the destination to store the VI Valid value.
7635+
* @vin: the destination to store the VIN value.
76337636
*
76347637
* Allocates a virtual interface for the given physical port. If @mac is
76357638
* not %NULL it contains the MAC addresses of the VI as assigned by FW.
@@ -7848,7 +7851,7 @@ int t4_free_raw_mac_filt(struct adapter *adap, unsigned int viid,
78487851
* t4_alloc_encap_mac_filt - Adds a mac entry in mps tcam with VNI support
78497852
* @adap: the adapter
78507853
* @viid: the VI id
7851-
* @mac: the MAC address
7854+
* @addr: the MAC address
78527855
* @mask: the mask
78537856
* @vni: the VNI id for the tunnel protocol
78547857
* @vni_mask: mask for the VNI id
@@ -7897,11 +7900,11 @@ int t4_alloc_encap_mac_filt(struct adapter *adap, unsigned int viid,
78977900
* t4_alloc_raw_mac_filt - Adds a mac entry in mps tcam
78987901
* @adap: the adapter
78997902
* @viid: the VI id
7900-
* @mac: the MAC address
7903+
* @addr: the MAC address
79017904
* @mask: the mask
79027905
* @idx: index at which to add this entry
7903-
* @port_id: the port index
79047906
* @lookup_type: MAC address for inner (1) or outer (0) header
7907+
* @port_id: the port index
79057908
* @sleep_ok: call is allowed to sleep
79067909
*
79077910
* Adds the mac entry at the specified index using raw mac interface.
@@ -8126,7 +8129,7 @@ int t4_free_mac_filt(struct adapter *adap, unsigned int mbox,
81268129
* @idx: index of existing filter for old value of MAC address, or -1
81278130
* @addr: the new MAC address value
81288131
* @persist: whether a new MAC allocation should be persistent
8129-
* @add_smt: if true also add the address to the HW SMT
8132+
* @smt_idx: the destination to store the new SMT index.
81308133
*
81318134
* Modifies an exact-match filter and sets it to the new MAC address.
81328135
* Note that in general it is not possible to modify the value of a given
@@ -8448,7 +8451,6 @@ int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
84488451

84498452
/**
84508453
* t4_link_down_rc_str - return a string for a Link Down Reason Code
8451-
* @adap: the adapter
84528454
* @link_down_rc: Link Down Reason Code
84538455
*
84548456
* Returns a string representation of the Link Down Reason Code.
@@ -8472,9 +8474,7 @@ static const char *t4_link_down_rc_str(unsigned char link_down_rc)
84728474
return reason[link_down_rc];
84738475
}
84748476

8475-
/**
8476-
* Return the highest speed set in the port capabilities, in Mb/s.
8477-
*/
8477+
/* Return the highest speed set in the port capabilities, in Mb/s. */
84788478
static unsigned int fwcap_to_speed(fw_port_cap32_t caps)
84798479
{
84808480
#define TEST_SPEED_RETURN(__caps_speed, __speed) \
@@ -9110,7 +9110,6 @@ static int t4_get_flash_params(struct adapter *adap)
91109110
/**
91119111
* t4_prep_adapter - prepare SW and HW for operation
91129112
* @adapter: the adapter
9113-
* @reset: if true perform a HW reset
91149113
*
91159114
* Initialize adapter SW state for the various HW modules, set initial
91169115
* values for some adapter tunables, take PHYs out of reset, and
@@ -10395,6 +10394,7 @@ int t4_sched_params(struct adapter *adapter, u8 type, u8 level, u8 mode,
1039510394
/**
1039610395
* t4_i2c_rd - read I2C data from adapter
1039710396
* @adap: the adapter
10397+
* @mbox: mailbox to use for the FW command
1039810398
* @port: Port number if per-port device; <0 if not
1039910399
* @devid: per-port device ID or absolute device ID
1040010400
* @offset: byte offset into device I2C space
@@ -10450,7 +10450,7 @@ int t4_i2c_rd(struct adapter *adap, unsigned int mbox, int port,
1045010450

1045110451
/**
1045210452
* t4_set_vlan_acl - Set a VLAN id for the specified VF
10453-
* @adapter: the adapter
10453+
* @adap: the adapter
1045410454
* @mbox: mailbox to use for the FW command
1045510455
* @vf: one of the VFs instantiated by the specified PF
1045610456
* @vlan: The vlanid to be set

0 commit comments

Comments
 (0)