rtl8139: use net/eth.h macros instead of custom macros
commit1bf11332c4770e2750247733c713a4e771047282
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Aug 2015 12:15:56 +0000 (3 13:15 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 2 Sep 2015 12:24:13 +0000 (2 13:24 +0100)
tree79653d611813539a6081c7276b7b6e6979d4c2ed
parent5d61721a621ef28d2f43fb5008afd38376be552b
rtl8139: use net/eth.h macros instead of custom macros

Eliminate the following "custom" macros since they are just duplicates
of net/eth.h macros under a different name:

  ETHER_ADDR_LEN -> ETH_ALEN
  ETH_P_8021Q -> ETH_P_VLAN
  IP_HEADER_LENGTH -> IP_HDR_GET_LEN
  TCP_FLAG_FIN -> TH_FIN
  TCP_FLAG_PUSH -> TH_PUSH

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Message-id: 1438604157-29664-3-git-send-email-stefanha@redhat.com
hw/net/rtl8139.c