From: Ouyang Changchun Date: Mon, 29 Sep 2014 07:16:19 +0000 (+0800) Subject: ixgbe/base: new error types X-Git-Tag: spdx-start~10368 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0b6683fa75bca46ec28f762c8019fa4346297d34;p=dpdk.git ixgbe/base: new error types This patch defines new error type in IXGBE base code; they are used to report different kinds of error. Signed-off-by: Changchun Ouyang --- diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h index ae9c28034f..ab13d64247 100644 --- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h +++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h @@ -82,6 +82,16 @@ #define UNREFERENCED_3PARAMETER(_p, _q, _r) #define UNREFERENCED_4PARAMETER(_p, _q, _r, _s) +/* Shared code error reporting */ +enum { + IXGBE_ERROR_SOFTWARE, + IXGBE_ERROR_POLLING, + IXGBE_ERROR_INVALID_STATE, + IXGBE_ERROR_UNSUPPORTED, + IXGBE_ERROR_ARGUMENT, + IXGBE_ERROR_CAUTION, +}; + #define STATIC static #define IXGBE_NTOHL(_i) rte_be_to_cpu_32(_i) #define IXGBE_NTOHS(_i) rte_be_to_cpu_16(_i)