{
u32 val, msk, type, type_mask = 0xf, i, count;
struct ocelot_ace_vlan *tag = &ace->vlan;
- struct ocelot_vcap_u64 payload = { 0 };
- struct vcap_data data = { 0 };
+ struct ocelot_vcap_u64 payload;
+ struct vcap_data data;
int row = (ix / 2);
+ memset(&payload, 0, sizeof(payload));
+ memset(&data, 0, sizeof(data));
+
/* Read row */
vcap_row_cmd(ocelot, row, VCAP_CMD_READ, VCAP_SEL_ALL);
vcap_cache2entry(ocelot, &data);
int ocelot_ace_rule_offload_del(struct ocelot_ace_rule *rule)
{
- struct ocelot_ace_rule del_ace = { 0 };
+ struct ocelot_ace_rule del_ace;
struct ocelot_ace_rule *ace;
int i, index;
+ memset(&del_ace, 0, sizeof(del_ace));
+
/* Gets index of the rule */
index = ocelot_ace_rule_get_index_id(acl_block, rule);
int ocelot_ace_init(struct ocelot *ocelot)
{
- struct vcap_data data = { 0 };
+ struct vcap_data data;
+ memset(&data, 0, sizeof(data));
vcap_entry2cache(ocelot, &data);
ocelot_write(ocelot, vcap_is2.entry_count, S2_CORE_MV_CFG);
vcap_cmd(ocelot, 0, VCAP_CMD_INITIALIZE, VCAP_SEL_ENTRY);