1. 31 10月, 2009 2 次提交
  2. 30 10月, 2009 2 次提交
  3. 29 10月, 2009 9 次提交
  4. 28 10月, 2009 7 次提交
  5. 27 10月, 2009 1 次提交
    • E
      vlan: allow null VLAN ID to be used · 05423b24
      Eric Dumazet 提交于
      We currently use a 16 bit field (vlan_tci) to store VLAN ID/PRIO on a skb.
      
      Null value is used as a special value, meaning vlan tagging not enabled.
      This forbids use of null vlan ID.
      
      As pointed by David, some drivers use the 3 high order bits (PRIO)
      
      As VLAN ID is 12 bits, we can use the remaining bit (CFI) as a flag, and
      allow null VLAN ID.
      
      In case future code really wants to use VLAN_CFI_MASK, we'll have to use
      a bit outside of vlan_tci.
      
      #define VLAN_PRIO_MASK         0xe000 /* Priority Code Point */
      #define VLAN_PRIO_SHIFT        13
      #define VLAN_CFI_MASK          0x1000 /* Canonical Format Indicator */
      #define VLAN_TAG_PRESENT       VLAN_CFI_MASK
      #define VLAN_VID_MASK          0x0fff /* VLAN Identifier */
      Reported-by: NGertjan Hofman <gertjan_hofman@yahoo.com>
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      05423b24
  6. 24 10月, 2009 2 次提交
  7. 23 10月, 2009 1 次提交
  8. 21 10月, 2009 2 次提交
  9. 20 10月, 2009 5 次提交
  10. 19 10月, 2009 4 次提交
  11. 15 10月, 2009 3 次提交
  12. 14 10月, 2009 1 次提交
  13. 13 10月, 2009 1 次提交