提交 af2960f9 编写于 作者: B Blue Swirl

e1000: make some tables 'const'

Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 117e1e82
...@@ -544,8 +544,8 @@ start_xmit(E1000State *s) ...@@ -544,8 +544,8 @@ start_xmit(E1000State *s)
static int static int
receive_filter(E1000State *s, const uint8_t *buf, int size) receive_filter(E1000State *s, const uint8_t *buf, int size)
{ {
static uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; static const uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
static int mta_shift[] = {4, 3, 2, 0}; static const int mta_shift[] = {4, 3, 2, 0};
uint32_t f, rctl = s->mac_reg[RCTL], ra[2], *rp; uint32_t f, rctl = s->mac_reg[RCTL], ra[2], *rp;
if (is_vlan_packet(s, buf) && vlan_rx_filter_enabled(s)) { if (is_vlan_packet(s, buf) && vlan_rx_filter_enabled(s)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册