build: remove architecture flag as default C flag
[dpdk.git] / lib / librte_ether / ethdev_profile.c
index 13c48a8..0d1dcda 100644 (file)
@@ -1,38 +1,7 @@
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2010-2017 Intel Corporation. All rights reserved.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2010-2017 Intel Corporation
  */
 
-#include <rte_config.h>
-
 #include "ethdev_profile.h"
 
 /**
@@ -82,7 +51,7 @@ struct itt_profile_rx_data itt_rx_data[RTE_MAX_ETHPORTS];
  * type declaration.
  */
 static uint16_t
-collect_itt_rx_burst_cb(uint8_t port_id, uint16_t queue_id,
+collect_itt_rx_burst_cb(uint16_t port_id, uint16_t queue_id,
        __rte_unused struct rte_mbuf *pkts[], uint16_t nb_pkts,
        __rte_unused uint16_t max_pkts, __rte_unused void *user_param)
 {
@@ -121,7 +90,7 @@ collect_itt_rx_burst_cb(uint8_t port_id, uint16_t queue_id,
  *  - On failure, a negative value.
  */
 static inline int
-itt_profile_rx_init(uint8_t port_id, char *port_name, uint8_t rx_queue_num)
+itt_profile_rx_init(uint16_t port_id, char *port_name, uint8_t rx_queue_num)
 {
        uint16_t q_id;
 
@@ -155,7 +124,7 @@ itt_profile_rx_init(uint8_t port_id, char *port_name, uint8_t rx_queue_num)
 #endif /* RTE_ETHDEV_PROFILE_ITT_WASTED_RX_ITERATIONS */
 
 int
-__rte_eth_profile_rx_init(__rte_unused uint8_t port_id,
+__rte_eth_profile_rx_init(__rte_unused uint16_t port_id,
        __rte_unused struct rte_eth_dev *dev)
 {
 #ifdef RTE_ETHDEV_PROFILE_ITT_WASTED_RX_ITERATIONS