Lines Matching +full:0 +full:x261
37 #define ICE_ETH_DA_OFFSET 0
40 #define ICE_MAX_VLAN_ID 0xFFF
41 #define ICE_IPV6_ETHER_ID 0x86DD
42 #define ICE_PPP_IPV6_PROTO_ID 0x0057
43 #define ICE_ETH_P_8021Q 0x8100
52 * byte 0 = 0x2: to identify it as locally administered DA MAC
53 * byte 6 = 0x2: to identify it as locally administered SA MAC
54 * byte 12 = 0x81 & byte 13 = 0x00:
55 * In case of VLAN filter first two bytes defines ether type (0x8100)
60 static const u8 dummy_eth_header[DUMMY_ETH_HDR_LEN] = { 0x2, 0, 0, 0, 0, 0,
61 0x2, 0, 0, 0, 0, 0,
62 0x81, 0, 0, 0};
86 for (i = 0; i < ICE_MAX_NUM_RECIPES; i++) {
96 return 0;
108 * Get switch configuration (0x0200) to be placed in buf.
114 * to 0. If the response from f/w has *req_desc set to 0, all the switch
175 *global_lut_id = LE16_TO_CPU(sw_buf->elem[0].e.sw_resp);
200 sw_buf->elem[0].e.sw_resp = CPU_TO_LE16(global_lut_id);
219 * allocates switch resources (SWID and VEB counter) (0x0208)
252 sw_ele = &sw_buf->elem[0];
283 counter_ele = &counter_buf->elem[0];
299 * free switch resources (SWID and VEB counter) (0x0209)
323 sw_buf->elem[0].e.sw_resp = CPU_TO_LE16(sw_id);
345 counter_buf->elem[0].e.sw_resp = CPU_TO_LE16(counter_id);
365 * Add a VSI context to the hardware (0x0210)
409 * Free VSI context info from hardware (0x0213)
429 status = ice_aq_send_cmd(hw, &desc, NULL, 0, cd);
444 * Update VSI context in the hardware (0x0211)
578 for (i = 0; i < ICE_MAX_VSI; i++)
622 return 0;
716 * Get VSI context info from hardware (0x0212)
757 * Add/Update Mirror Rule (0x260).
767 u16 buf_size = 0;
804 for (i = 0; i < count; i++) {
855 * Delete Mirror Rule (0x261).
864 /* rule_id should be in the range 0...63 */
877 return ice_aq_send_cmd(hw, &desc, NULL, 0, cd);
923 sw_buf->elem[0].e.sw_resp = CPU_TO_LE16(*vsi_list_id);
930 vsi_ele = &sw_buf->elem[0];
946 * Sets the storm control configuration (0x0280)
963 return ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
973 * Gets the storm control configuration (0x0281)
984 status = ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
1010 * Add(0x02a0)/Update(0x02a1)/Remove(0x02a2) switch rules commands to firmware
1071 u16 req_desc = 0;
1074 u8 j = 0;
1099 for (i = 0, ele = rbuf; i < num_elems; i++, ele++) {
1234 u32 act = 0;
1239 s_rule->act = 0;
1241 s_rule->hdr_len = 0;
1279 q_rgn = f_info->qgrp_size > 0 ?
1280 (u8)ice_ilog2(f_info->qgrp_size) : 0;
1416 lg_act->act[0] = CPU_TO_LE32(act);
1516 lg_act->act[0] = CPU_TO_LE32(act);
1574 for (i = 0; i < num_vsi; i++)
1628 for (i = 0; i < num_vsi; i++) {
1783 int status = 0;
1842 u16 vsi_list_id = 0;
1843 int status = 0;
1867 vsi_handle_arr[0] = cur_fltr->vsi_handle;
1869 status = ice_create_vsi_list_rule(hw, &vsi_handle_arr[0], 2,
1889 ice_create_vsi_list_map(hw, &vsi_handle_arr[0], 2,
2028 int status = 0;
2095 int status = 0;
2098 fm_list->vsi_count == 0)
2150 (fm_list->vsi_count == 0 && lkup_type == ICE_SW_LKUP_VLAN)) {
2183 int status = 0;
2225 if (list_elem->vsi_count == 0)
2234 ice_malloc(hw, ice_struct_size(s_rule, hdr_data, 0));
2244 ice_struct_size(s_rule, hdr_data, 0),
2333 ICE_AQC_RES_TYPE_FLAG_SHARED : 0));
2366 u16 num_unicast = 0;
2367 int status = 0;
2376 u8 *add = &m_list_itr->fltr_info.l_data.mac.mac_addr[0];
2417 status = 0;
2434 u8 *mac_addr = &f_info->l_data.mac.mac_addr[0];
2447 for (total_elem_left = num_unicast; total_elem_left > 0;
2467 u8 *mac_addr = &f_info->l_data.mac.mac_addr[0];
2529 u16 vsi_list_id = 0, vsi_handle;
2531 int status = 0;
2634 vsi_handle_arr[0] = cur_handle;
2636 status = ice_create_vsi_list_rule(hw, &vsi_handle_arr[0], 2,
2660 ice_create_vsi_list_map(hw, &vsi_handle_arr[0], 2,
2694 return 0;
2747 return 0;
2796 return 0;
2832 * The num_acts cannot be equal to 0 or greater than 4.
2849 return 0;
2884 *l_id = LE16_TO_CPU(sw_buf->elem[0].e.sw_resp);
2920 for (i = 0; i < ICE_MAX_NUM_RECIPES; i++) {
2958 ice_memset(&f_info, 0, sizeof(f_info), ICE_NONDMA_MEM);
3080 u8 *add = &list_itr->fltr_info.l_data.mac.mac_addr[0];
3110 return 0;
3150 return 0;
3227 return 0;
3249 int status = 0;
3336 *vid = 0;
3358 return 0;
3419 return 0;
3442 int status = 0;
3540 int status = 0;
3551 ice_memset(&new_fltr, 0, sizeof(new_fltr), ICE_NONDMA_MEM);
3575 pkt_type = 0;
3616 ice_memset(mac_addr, 0xff, ETH_ALEN, ICE_NONDMA_MEM);
3623 mac_addr[0] |= 0x1; /* Set multicast bit */
3627 new_fltr.flag = 0;
3713 list_itr->fltr_info.l_data.vlan.tpid == 0)
3893 *counter_id = LE16_TO_CPU(buf->elem[0].e.sw_resp);
3925 buf->elem[0].e.sw_resp = CPU_TO_LE16(counter_id);
4168 int status = 0;
4238 for (i = 0; i < ICE_MAX_NUM_RECIPES; i++) {
4267 int status = 0;
4326 int status = 0;
4332 for (i = 0; i < ICE_MAX_NUM_RECIPES; i++) {
4343 return 0;
4360 for (i = 0; i < ICE_MAX_NUM_RECIPES; i++) {