@@ -423,7 +423,7 @@ send_enbdis(struct net_device *netdev, int state,
423
423
424
424
/**
425
425
* visornic_disable_with_timeout - Disable network adapter
426
- * @netdev: netdevice to disale
426
+ * @netdev: netdevice to disable
427
427
* @timeout: timeout to wait for disable
428
428
*
429
429
* Disable the network adapter and inform the IO Partition that we
@@ -532,7 +532,7 @@ init_rcv_bufs(struct net_device *netdev, struct visornic_devdata *devdata)
532
532
return - ENOMEM ;
533
533
count = i ;
534
534
535
- /* Ensure we can alloc 2/3rd of the requeested number of buffers.
535
+ /* Ensure we can alloc 2/3rd of the requested number of buffers.
536
536
* 2/3 is an arbitrary choice; used also in ndis init.c
537
537
*/
538
538
if (count < ((2 * devdata -> num_rcv_bufs ) / 3 )) {
@@ -561,7 +561,7 @@ init_rcv_bufs(struct net_device *netdev, struct visornic_devdata *devdata)
561
561
*
562
562
* Sends enable to IOVM, inits, and posts receive buffers to IOVM
563
563
* timeout is defined in msecs (timeout of 0 specifies infinite wait)
564
- * Return 0 for success, negavite for failure.
564
+ * Return 0 for success, negative for failure.
565
565
*/
566
566
static int
567
567
visornic_enable_with_timeout (struct net_device * netdev , const int timeout )
@@ -750,7 +750,7 @@ static inline bool vnic_hit_low_watermark(struct visornic_devdata *devdata,
750
750
* @skb: Packet to be sent
751
751
* @netdev: net device the packet is being sent from
752
752
*
753
- * Convert the skb to a cmdrsp so the IO Partition can undersand it.
753
+ * Convert the skb to a cmdrsp so the IO Partition can understand it.
754
754
* Send the XMIT command to the IO Partition for processing. This
755
755
* function is protected from concurrent calls by a spinlock xmit_lock
756
756
* in the net_device struct, but as soon as the function returns it
@@ -1097,7 +1097,7 @@ repost_return(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata,
1097
1097
*
1098
1098
* Got a receive packet back from the IO Part, handle it and send
1099
1099
* it up the stack.
1100
- * Returns 1 iff an skb was receieved , otherwise 0
1100
+ * Returns 1 iff an skb was received , otherwise 0
1101
1101
*/
1102
1102
static int
1103
1103
visornic_rx (struct uiscmdrsp * cmdrsp )
@@ -1227,7 +1227,7 @@ visornic_rx(struct uiscmdrsp *cmdrsp)
1227
1227
}
1228
1228
}
1229
1229
1230
- /* set up packet's protocl type using ethernet header - this
1230
+ /* set up packet's protocol type using ethernet header - this
1231
1231
* sets up skb->pkt_type & it also PULLS out the eth header
1232
1232
*/
1233
1233
skb -> protocol = eth_type_trans (skb , netdev );
@@ -1549,7 +1549,7 @@ drain_resp_queue(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata)
1549
1549
* @cmdrsp: io channel command response message
1550
1550
* @devdata: visornic device to drain
1551
1551
*
1552
- * Drain the respones queue of any responses from the IO partition.
1552
+ * Drain the response queue of any responses from the IO partition.
1553
1553
* Process the responses as we get them.
1554
1554
* Returns when response queue is empty or when the thread stops.
1555
1555
*/
@@ -1665,7 +1665,7 @@ static int visornic_poll(struct napi_struct *napi, int budget)
1665
1665
* poll_for_irq - Checks the status of the response queue.
1666
1666
* @v: void pointer to the visronic devdata
1667
1667
*
1668
- * Main function of the vnic_incoming thread. Peridocially check the
1668
+ * Main function of the vnic_incoming thread. Periodically check the
1669
1669
* response queue and drain it if needed.
1670
1670
* Returns when thread has stopped.
1671
1671
*/
@@ -1711,7 +1711,7 @@ static int visornic_probe(struct visor_device *dev)
1711
1711
netdev -> watchdog_timeo = 5 * HZ ;
1712
1712
SET_NETDEV_DEV (netdev , & dev -> device );
1713
1713
1714
- /* Get MAC adddress from channel and read it into the device. */
1714
+ /* Get MAC address from channel and read it into the device. */
1715
1715
netdev -> addr_len = ETH_ALEN ;
1716
1716
channel_offset = offsetof(struct spar_io_channel_protocol ,
1717
1717
vnic .macaddr );
@@ -1835,7 +1835,7 @@ static int visornic_probe(struct visor_device *dev)
1835
1835
/* Let's start our threads to get responses */
1836
1836
netif_napi_add (netdev , & devdata -> napi , visornic_poll , NAPI_WEIGHT );
1837
1837
1838
- /* Note: Interupts have to be enable before the while
1838
+ /* Note: Interrupts have to be enable before the while
1839
1839
* loop below because the napi routine is responsible for
1840
1840
* setting enab_dis_acked
1841
1841
*/
@@ -1848,7 +1848,7 @@ static int visornic_probe(struct visor_device *dev)
1848
1848
goto cleanup_napi_add ;
1849
1849
}
1850
1850
1851
- /* create debgug /sysfs directories */
1851
+ /* create debug /sysfs directories */
1852
1852
devdata -> eth_debugfs_dir = debugfs_create_dir (netdev -> name ,
1853
1853
visornic_debugfs_dir );
1854
1854
if (!devdata -> eth_debugfs_dir ) {
0 commit comments