if_ixl.c (407912909a71b22d5e381ae9178bcacbcbc0ce45) | if_ixl.c (1d02c6b1b859e9f611bc8fe27ca3d2c16ec128c1) |
---|---|
1/****************************************************************************** 2 3 Copyright (c) 2013-2018, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 35 unchanged lines hidden (view full) --- 44#include "ixl_pf_iov.h" 45#endif 46 47/********************************************************************* 48 * Driver version 49 *********************************************************************/ 50#define IXL_DRIVER_VERSION_MAJOR 2 51#define IXL_DRIVER_VERSION_MINOR 3 | 1/****************************************************************************** 2 3 Copyright (c) 2013-2018, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 35 unchanged lines hidden (view full) --- 44#include "ixl_pf_iov.h" 45#endif 46 47/********************************************************************* 48 * Driver version 49 *********************************************************************/ 50#define IXL_DRIVER_VERSION_MAJOR 2 51#define IXL_DRIVER_VERSION_MINOR 3 |
52#define IXL_DRIVER_VERSION_BUILD 2 | 52#define IXL_DRIVER_VERSION_BUILD 3 |
53 54#define IXL_DRIVER_VERSION_STRING \ 55 __XSTRING(IXL_DRIVER_VERSION_MAJOR) "." \ 56 __XSTRING(IXL_DRIVER_VERSION_MINOR) "." \ 57 __XSTRING(IXL_DRIVER_VERSION_BUILD) "-k" 58 59/********************************************************************* 60 * PCI Device ID Table --- 1654 unchanged lines hidden (view full) --- 1715 return; 1716 1717 --vsi->num_vlans; 1718 bit_clear(vsi->vlans_map, vtag); 1719 1720 if ((if_getcapenable(ifp) & IFCAP_VLAN_HWFILTER) == 0) 1721 return; 1722 | 53 54#define IXL_DRIVER_VERSION_STRING \ 55 __XSTRING(IXL_DRIVER_VERSION_MAJOR) "." \ 56 __XSTRING(IXL_DRIVER_VERSION_MINOR) "." \ 57 __XSTRING(IXL_DRIVER_VERSION_BUILD) "-k" 58 59/********************************************************************* 60 * PCI Device ID Table --- 1654 unchanged lines hidden (view full) --- 1715 return; 1716 1717 --vsi->num_vlans; 1718 bit_clear(vsi->vlans_map, vtag); 1719 1720 if ((if_getcapenable(ifp) & IFCAP_VLAN_HWFILTER) == 0) 1721 return; 1722 |
1723 if (vsi->num_vlans < IXL_MAX_VLAN_FILTERS) | 1723 /* One filter is used for untagged frames */ 1724 if (vsi->num_vlans < IXL_MAX_VLAN_FILTERS - 1) |
1724 ixl_del_filter(vsi, hw->mac.addr, vtag); | 1725 ixl_del_filter(vsi, hw->mac.addr, vtag); |
1725 else if (vsi->num_vlans == IXL_MAX_VLAN_FILTERS) { | 1726 else if (vsi->num_vlans == IXL_MAX_VLAN_FILTERS - 1) { |
1726 ixl_del_filter(vsi, hw->mac.addr, IXL_VLAN_ANY); 1727 ixl_add_vlan_filters(vsi, hw->mac.addr); 1728 } 1729} 1730 1731static uint64_t 1732ixl_if_get_counter(if_ctx_t ctx, ift_counter cnt) 1733{ --- 181 unchanged lines hidden --- | 1727 ixl_del_filter(vsi, hw->mac.addr, IXL_VLAN_ANY); 1728 ixl_add_vlan_filters(vsi, hw->mac.addr); 1729 } 1730} 1731 1732static uint64_t 1733ixl_if_get_counter(if_ctx_t ctx, ift_counter cnt) 1734{ --- 181 unchanged lines hidden --- |