diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-10-31 23:06:52 +0000 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2011-11-03 19:13:07 +0000 |
commit | 02af8c22427ef521314725673860cf7906e49780 (patch) | |
tree | 6cb826c2923d8f83078e7639f395786e56e801d8 /rxclass.c | |
parent | 5a3279e43f2bf46a29d3a0e3e424ba6774a9be64 (diff) | |
download | ethtool-02af8c22427ef521314725673860cf7906e49780.tar.gz |
Declare static variables const as appropriate
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'rxclass.c')
-rw-r--r-- | rxclass.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -533,7 +533,7 @@ struct rule_opts { int moffset; }; -static struct rule_opts rule_nfc_tcp_ip4[] = { +static const struct rule_opts rule_nfc_tcp_ip4[] = { { "src-ip", OPT_IP4, NFC_FLAG_SADDR, offsetof(struct ethtool_rx_flow_spec, h_u.tcp_ip4_spec.ip4src), offsetof(struct ethtool_rx_flow_spec, m_u.tcp_ip4_spec.ip4src) }, @@ -564,7 +564,7 @@ static struct rule_opts rule_nfc_tcp_ip4[] = { offsetof(struct ethtool_rx_flow_spec, m_ext.data) }, }; -static struct rule_opts rule_nfc_esp_ip4[] = { +static const struct rule_opts rule_nfc_esp_ip4[] = { { "src-ip", OPT_IP4, NFC_FLAG_SADDR, offsetof(struct ethtool_rx_flow_spec, h_u.esp_ip4_spec.ip4src), offsetof(struct ethtool_rx_flow_spec, m_u.esp_ip4_spec.ip4src) }, @@ -592,7 +592,7 @@ static struct rule_opts rule_nfc_esp_ip4[] = { offsetof(struct ethtool_rx_flow_spec, m_ext.data) }, }; -static struct rule_opts rule_nfc_usr_ip4[] = { +static const struct rule_opts rule_nfc_usr_ip4[] = { { "src-ip", OPT_IP4, NFC_FLAG_SADDR, offsetof(struct ethtool_rx_flow_spec, h_u.usr_ip4_spec.ip4src), offsetof(struct ethtool_rx_flow_spec, m_u.usr_ip4_spec.ip4src) }, @@ -632,7 +632,7 @@ static struct rule_opts rule_nfc_usr_ip4[] = { offsetof(struct ethtool_rx_flow_spec, m_ext.data) }, }; -static struct rule_opts rule_nfc_ether[] = { +static const struct rule_opts rule_nfc_ether[] = { { "src", OPT_MAC, NFC_FLAG_SADDR, offsetof(struct ethtool_rx_flow_spec, h_u.ether_spec.h_source), offsetof(struct ethtool_rx_flow_spec, m_u.ether_spec.h_source) }, |