• Home
  • Raw
  • Download

Lines Matching refs:lro

2970 	if (ring_data->lro) {  in rx_intr_handler()
2973 struct lro *lro = &ring_data->lro0_n[i]; in rx_intr_handler() local
2974 if (lro->in_use) { in rx_intr_handler()
2975 update_L3L4_header(ring_data->nic, lro); in rx_intr_handler()
2976 queue_rx_frame(lro->parent, lro->vlan_tag); in rx_intr_handler()
2977 clear_lro_session(lro); in rx_intr_handler()
7123 ring->lro = !!(dev->features & NETIF_F_LRO); in s2io_card_up()
7291 struct lro *lro; in rx_osm_handler() local
7378 ((!ring_data->lro) || in rx_osm_handler()
7390 if (ring_data->lro) { in rx_osm_handler()
7397 &tcp_len, &lro, in rx_osm_handler()
7401 lro->parent = skb; in rx_osm_handler()
7404 lro_append_pkt(sp, lro, skb, tcp_len); in rx_osm_handler()
7407 lro_append_pkt(sp, lro, skb, tcp_len); in rx_osm_handler()
7408 queue_rx_frame(lro->parent, in rx_osm_handler()
7409 lro->vlan_tag); in rx_osm_handler()
7410 clear_lro_session(lro); in rx_osm_handler()
7414 lro->parent->data_len = lro->frags_len; in rx_osm_handler()
7416 queue_rx_frame(lro->parent, in rx_osm_handler()
7417 lro->vlan_tag); in rx_osm_handler()
7418 clear_lro_session(lro); in rx_osm_handler()
8218 static int check_for_socket_match(struct lro *lro, struct iphdr *ip, in check_for_socket_match() argument
8222 if ((lro->iph->saddr != ip->saddr) || in check_for_socket_match()
8223 (lro->iph->daddr != ip->daddr) || in check_for_socket_match()
8224 (lro->tcph->source != tcp->source) || in check_for_socket_match()
8225 (lro->tcph->dest != tcp->dest)) in check_for_socket_match()
8235 static void initiate_new_session(struct lro *lro, u8 *l2h, in initiate_new_session() argument
8240 lro->l2h = l2h; in initiate_new_session()
8241 lro->iph = ip; in initiate_new_session()
8242 lro->tcph = tcp; in initiate_new_session()
8243 lro->tcp_next_seq = tcp_pyld_len + ntohl(tcp->seq); in initiate_new_session()
8244 lro->tcp_ack = tcp->ack_seq; in initiate_new_session()
8245 lro->sg_num = 1; in initiate_new_session()
8246 lro->total_len = ntohs(ip->tot_len); in initiate_new_session()
8247 lro->frags_len = 0; in initiate_new_session()
8248 lro->vlan_tag = vlan_tag; in initiate_new_session()
8256 lro->saw_ts = 1; in initiate_new_session()
8257 lro->cur_tsval = ntohl(*(ptr+1)); in initiate_new_session()
8258 lro->cur_tsecr = *(ptr+2); in initiate_new_session()
8260 lro->in_use = 1; in initiate_new_session()
8263 static void update_L3L4_header(struct s2io_nic *sp, struct lro *lro) in update_L3L4_header() argument
8265 struct iphdr *ip = lro->iph; in update_L3L4_header()
8266 struct tcphdr *tcp = lro->tcph; in update_L3L4_header()
8272 csum_replace2(&ip->check, ip->tot_len, htons(lro->total_len)); in update_L3L4_header()
8273 ip->tot_len = htons(lro->total_len); in update_L3L4_header()
8276 tcp->ack_seq = lro->tcp_ack; in update_L3L4_header()
8277 tcp->window = lro->window; in update_L3L4_header()
8280 if (lro->saw_ts) { in update_L3L4_header()
8282 *(ptr+2) = lro->cur_tsecr; in update_L3L4_header()
8288 swstats->sum_avg_pkts_aggregated += lro->sg_num; in update_L3L4_header()
8292 static void aggregate_new_rx(struct lro *lro, struct iphdr *ip, in aggregate_new_rx() argument
8296 lro->total_len += l4_pyld; in aggregate_new_rx()
8297 lro->frags_len += l4_pyld; in aggregate_new_rx()
8298 lro->tcp_next_seq += l4_pyld; in aggregate_new_rx()
8299 lro->sg_num++; in aggregate_new_rx()
8302 lro->tcp_ack = tcp->ack_seq; in aggregate_new_rx()
8303 lro->window = tcp->window; in aggregate_new_rx()
8305 if (lro->saw_ts) { in aggregate_new_rx()
8309 lro->cur_tsval = ntohl(*(ptr+1)); in aggregate_new_rx()
8310 lro->cur_tsecr = *(ptr + 2); in aggregate_new_rx()
8314 static int verify_l3_l4_lro_capable(struct lro *l_lro, struct iphdr *ip, in verify_l3_l4_lro_capable()
8373 u8 **tcp, u32 *tcp_len, struct lro **lro, in s2io_club_tcp_session() argument
8393 struct lro *l_lro = &ring_data->lro0_n[i]; in s2io_club_tcp_session()
8398 *lro = l_lro; in s2io_club_tcp_session()
8400 if ((*lro)->tcp_next_seq != ntohl(tcph->seq)) { in s2io_club_tcp_session()
8404 (*lro)->tcp_next_seq, in s2io_club_tcp_session()
8431 struct lro *l_lro = &ring_data->lro0_n[i]; in s2io_club_tcp_session()
8433 *lro = l_lro; in s2io_club_tcp_session()
8443 *lro = NULL; in s2io_club_tcp_session()
8449 initiate_new_session(*lro, buffer, ip, tcph, *tcp_len, in s2io_club_tcp_session()
8453 update_L3L4_header(sp, *lro); in s2io_club_tcp_session()
8456 aggregate_new_rx(*lro, ip, tcph, *tcp_len); in s2io_club_tcp_session()
8457 if ((*lro)->sg_num == sp->lro_max_aggr_per_sess) { in s2io_club_tcp_session()
8458 update_L3L4_header(sp, *lro); in s2io_club_tcp_session()
8470 static void clear_lro_session(struct lro *lro) in clear_lro_session() argument
8472 static u16 lro_struct_size = sizeof(struct lro); in clear_lro_session()
8474 memset(lro, 0, lro_struct_size); in clear_lro_session()
8491 static void lro_append_pkt(struct s2io_nic *sp, struct lro *lro, in lro_append_pkt() argument
8494 struct sk_buff *first = lro->parent; in lro_append_pkt()
8498 first->data_len = lro->frags_len; in lro_append_pkt()
8501 lro->last_frag->next = skb; in lro_append_pkt()
8505 lro->last_frag = skb; in lro_append_pkt()