aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/ipvs/ip_vs_ctl.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-16 11:20:04 +0000
committerDavid S. Miller <davem@davemloft.net>2013-02-18 12:45:53 -0500
commit4153577a8d318ae02b3791341e10e78416de402f (patch)
tree95c53e095bf5eecdedf7043aac61b9062c07fb43 /net/netfilter/ipvs/ip_vs_ctl.c
parenttg3: Remove define and single use of GET_CHIP_REV_ID (diff)
downloadlinux-dev-4153577a8d318ae02b3791341e10e78416de402f.tar.xz
linux-dev-4153577a8d318ae02b3791341e10e78416de402f.zip
tg3: Use different macros for pci_chip_rev_id accesses
Upper case macros for various chip attributes are slightly difficult to read and are a bit out of characterto the other tg3_<foo> attribute functions. Convert: GET_ASIC_REV(tp->pci_chip_rev_id) -> tg3_asic_rev(tp) GET_CHIP_REV(tp->pci_chip_rev_id) -> tg3_chip_rev(tp) Remove: GET_METAL_REV(tp->pci_chip_rev_id) -> tg3_metal_rev(tp) (unused) Add: tg3_chip_rev_id(tp) for tp->pci_chip_rev_id so access styles are similar to tg3_asic_rev and tg3_chip_rev. These macros are not converted to static inline functions because gcc (tested with 4.7.2) is currently unable to optimize the object code it produces the same way and code is otherwise larger. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_ctl.c')
0 files changed, 0 insertions, 0 deletions