numam-dpdk/drivers/net/e1000/base
Andrius Sirvys 902f389f9b drivers/net: fix shifting 32-bit signed variable 31 times
Shifting signed 32-bit values by 31-bits has the potential for
unexpected  outcomes as compiler can overwrite a bit.
Specified that values are unsigned.

Errors are observed from running cppcheck.

Bugzilla ID: 58
Fixes: 69e209be54 ("net/axgbe: add register map and related macros")
Fixes: b5bf771922 ("bnx2x: driver support routines")
Fixes: ed2ced6fe9 ("net/bnxt: check initialization before accessing stats")
Fixes: 6fda3f0ddd ("net/cxgbe: add API to program hardware MPS table")
Fixes: bdb244b969 ("e1000: whitespace changes")
Fixes: 5a32a257f9 ("e1000: more NICs in base driver")
Fixes: 2fe669f4bc ("net/nfp: support MAC address change")
Fixes: defb9a5dd1 ("nfp: introduce driver initialization")
Fixes: ec94dbc573 ("qede: add base driver")
Fixes: d2e7d931d0 ("net/qede/base: formatting changes")
Fixes: cdc07e83bb ("net/tap: add eBPF program file")
Cc: stable@dpdk.org

Signed-off-by: Andrius Sirvys <andrius.sirvys@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2019-03-01 18:17:36 +01:00
..
e1000_80003es2lan.c
e1000_80003es2lan.h
e1000_82540.c
e1000_82541.c
e1000_82541.h
e1000_82542.c
e1000_82543.c
e1000_82543.h
e1000_82571.c
e1000_82571.h
e1000_82575.c
e1000_82575.h
e1000_api.c
e1000_api.h
e1000_defines.h
e1000_hw.h
e1000_i210.c
e1000_i210.h
e1000_ich8lan.c
e1000_ich8lan.h
e1000_mac.c
e1000_mac.h
e1000_manage.c
e1000_manage.h
e1000_mbx.c
e1000_mbx.h
e1000_nvm.c
e1000_nvm.h
e1000_osdep.c
e1000_osdep.h
e1000_phy.c
e1000_phy.h
e1000_regs.h
e1000_vf.c
e1000_vf.h
meson.build
README

..
     BSD LICENSE
   
     Copyright(c) 2010-2016 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.

This directory contains source code of FreeBSD em & igb drivers of version
cid-shared-code.2016.11.22 released by ND. The sub-directory of base/
contains the original source package.

This driver is valid for the product(s) listed below
* Intel® Ethernet Controller 82540
* Intel® Ethernet Controller 82545 Series
* Intel® Ethernet Controller 82546 Series
* Intel® Ethernet Controller 82571 Series
* Intel® Ethernet Controller 82572 Series
* Intel® Ethernet Controller 82573
* Intel® Ethernet Controller 82574
* Intel® Ethernet Controller 82583
* Intel® Ethernet Controller I217 Series
* Intel® Ethernet Controller I218 Series
* Intel® Ethernet Controller I219 Series
* Intel® Ethernet Controller 82576 Series
* Intel® Ethernet Controller 82575 Series
* Intel® Ethernet Controller 82580 Series
* Intel® Ethernet Controller I350 Series
* Intel® Ethernet Controller I210 Series
* Intel® Ethernet Controller I211
* Intel® Ethernet Controller I354 Series
* Intel® Ethernet Controller DH89XXCC Series

Updating the driver
===================

NOTE: The source code in this directory should not be modified apart from
the following file(s):

    e1000_osdep.c
    e1000_osdep.h