doc: whitespace changes in licenses
[dpdk.git] / lib / librte_eal / linuxapp / kni / kni_net.c
index dfcf3f2..66de5e7 100755 (executable)
@@ -1,26 +1,25 @@
 /*-
  * GPL LICENSE SUMMARY
  * 
- *   Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
  * 
- *   This program is free software; you can redistribute it and/or modify 
+ *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of version 2 of the GNU General Public License as
  *   published by the Free Software Foundation.
  * 
- *   This program is distributed in the hope that it will be useful, but 
- *   WITHOUT ANY WARRANTY; without even the implied warranty of 
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ *   This program is distributed in the hope that it will be useful, but
+ *   WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  *   General Public License for more details.
  * 
- *   You should have received a copy of the GNU General Public License 
- *   along with this program; if not, write to the Free Software 
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
- *   The full GNU General Public License is included in this distribution 
+ *   The full GNU General Public License is included in this distribution
  *   in the file called LICENSE.GPL.
  * 
  *   Contact Information:
  *   Intel Corporation
- * 
  */
 
 /*
@@ -132,7 +131,7 @@ kni_net_open(struct net_device *dev)
        struct rte_kni_request req;
        struct kni_dev *kni = netdev_priv(dev);
 
-       KNI_DBG("kni_net_open %d\n", kni->idx);
+       KNI_DBG("kni_net_open %d\n", kni->port_id);
 
        /*
         * Assign the hardware address of the board: use "\0KNIx", where
@@ -144,7 +143,7 @@ kni_net_open(struct net_device *dev)
                memcpy(dev->dev_addr, kni->lad_dev->dev_addr, ETH_ALEN);
        else {
                memcpy(dev->dev_addr, "\0KNI0", ETH_ALEN);
-               dev->dev_addr[ETH_ALEN-1] += kni->idx; /* \0KNI1 */
+               dev->dev_addr[ETH_ALEN-1] += kni->port_id; /* \0KNI1 */
        }
 
        netif_start_queue(dev);
@@ -247,7 +246,7 @@ kni_net_rx_normal(struct kni_dev *kni)
                        skb->ip_summed = CHECKSUM_UNNECESSARY;
 
                        /* Call netif interface */
-                       netif_rx(skb);
+                       netif_receive_skb(skb);
 
                        /* Update statistics */
                        kni->stats.rx_bytes += len;
@@ -543,7 +542,7 @@ static int
 kni_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 {
        struct kni_dev *kni = netdev_priv(dev);
-       KNI_DBG("kni_net_ioctl %d\n", kni->idx);
+       KNI_DBG("kni_net_ioctl %d\n", kni->port_id);
 
        return 0;
 }