Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_api.c
/****************************************************************************** | /****************************************************************************** | ||||
Copyright (c) 2001-2015, Intel Corporation | Copyright (c) 2001-2016, Intel Corporation | ||||
All rights reserved. | All rights reserved. | ||||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | ||||
modification, are permitted provided that the following conditions are met: | modification, are permitted provided that the following conditions are met: | ||||
1. Redistributions of source code must retain the above copyright notice, | 1. Redistributions of source code must retain the above copyright notice, | ||||
this list of conditions and the following disclaimer. | this list of conditions and the following disclaimer. | ||||
▲ Show 20 Lines • Show All 1,055 Lines • ▼ Show 20 Lines | s32 ixgbe_set_vfta(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on) | ||||
return ixgbe_call_func(hw, hw->mac.ops.set_vfta, (hw, vlan, vind, | return ixgbe_call_func(hw, hw->mac.ops.set_vfta, (hw, vlan, vind, | ||||
vlan_on), IXGBE_NOT_IMPLEMENTED); | vlan_on), IXGBE_NOT_IMPLEMENTED); | ||||
} | } | ||||
/** | /** | ||||
* ixgbe_set_vlvf - Set VLAN Pool Filter | * ixgbe_set_vlvf - Set VLAN Pool Filter | ||||
* @hw: pointer to hardware structure | * @hw: pointer to hardware structure | ||||
* @vlan: VLAN id to write to VLAN filter | * @vlan: VLAN id to write to VLAN filter | ||||
* @vind: VMDq output index that maps queue to VLAN id in VFVFB | * @vind: VMDq output index that maps queue to VLAN id in VLVFB | ||||
* @vlan_on: boolean flag to turn on/off VLAN in VFVF | * @vlan_on: boolean flag to turn on/off VLAN in VLVF | ||||
* @vfta_changed: pointer to boolean flag which indicates whether VFTA | * @vfta_changed: pointer to boolean flag which indicates whether VFTA | ||||
* should be changed | * should be changed | ||||
* | * | ||||
* Turn on/off specified bit in VLVF table. | * Turn on/off specified bit in VLVF table. | ||||
**/ | **/ | ||||
s32 ixgbe_set_vlvf(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on, | s32 ixgbe_set_vlvf(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on, | ||||
bool *vfta_changed) | bool *vfta_changed) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 539 Lines • Show Last 20 Lines |