hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/fcoe/fcoe_transport.c
....@@ -1,18 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License along with
14
- * this program; if not, write to the Free Software Foundation, Inc.,
15
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
164 *
175 * Maintained at www.Open-FCoE.org
186 */
....@@ -320,7 +308,7 @@
320308 u32 fcoe_fc_crc(struct fc_frame *fp)
321309 {
322310 struct sk_buff *skb = fp_skb(fp);
323
- struct skb_frag_struct *frag;
311
+ skb_frag_t *frag;
324312 unsigned char *data;
325313 unsigned long off, len, clen;
326314 u32 crc;
....@@ -330,7 +318,7 @@
330318
331319 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
332320 frag = &skb_shinfo(skb)->frags[i];
333
- off = frag->page_offset;
321
+ off = skb_frag_off(frag);
334322 len = skb_frag_size(frag);
335323 while (len > 0) {
336324 clen = min(len, PAGE_SIZE - (off & ~PAGE_MASK));
....@@ -394,6 +382,7 @@
394382 /**
395383 * fcoe_check_wait_queue() - Attempt to clear the transmit backlog
396384 * @lport: The local port whose backlog is to be cleared
385
+ * @skb: The received FIP packet
397386 *
398387 * This empties the wait_queue, dequeues the head of the wait_queue queue
399388 * and calls fcoe_start_io() for each packet. If all skb have been
....@@ -451,7 +440,7 @@
451440
452441 /**
453442 * fcoe_queue_timer() - The fcoe queue timer
454
- * @lport: The local port
443
+ * @t: Timer context use to obtain the FCoE port
455444 *
456445 * Calls fcoe_check_wait_queue on timeout
457446 */
....@@ -684,6 +673,7 @@
684673 /**
685674 * fcoe_netdev_map_lookup - find the fcoe transport that matches the netdev on which
686675 * it was created
676
+ * @netdev: The net device that the FCoE interface is on
687677 *
688678 * Returns : ptr to the fcoe transport that supports this netdev or NULL
689679 * if not found.
....@@ -855,7 +845,6 @@
855845 mutex_unlock(&ft_mutex);
856846 return rc;
857847 }
858
-EXPORT_SYMBOL(fcoe_ctlr_destroy_store);
859848
860849 /**
861850 * fcoe_transport_create() - Create a fcoe interface