ena.c (5a9902126ef49e29cec67e9020802063c8579b55) | ena.c (cd43338509d07e0e4f3d986ec73f9817b42f91ac) |
---|---|
1/*- 2 * BSD LICENSE 3 * 4 * Copyright (c) 2015-2017 Amazon.com, Inc. or its affiliates. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 2626 unchanged lines hidden (view full) --- 2635 if ((mbuf->m_pkthdr.csum_flags & CSUM_TSO) != 0) { 2636 ena_tx_ctx->tso_enable = 1; 2637 ena_meta->l4_hdr_len = (th->th_off); 2638 } 2639 2640 switch (etype) { 2641 case ETHERTYPE_IP: 2642 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV4; | 1/*- 2 * BSD LICENSE 3 * 4 * Copyright (c) 2015-2017 Amazon.com, Inc. or its affiliates. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 2626 unchanged lines hidden (view full) --- 2635 if ((mbuf->m_pkthdr.csum_flags & CSUM_TSO) != 0) { 2636 ena_tx_ctx->tso_enable = 1; 2637 ena_meta->l4_hdr_len = (th->th_off); 2638 } 2639 2640 switch (etype) { 2641 case ETHERTYPE_IP: 2642 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV4; |
2643 if (ip->ip_off == 0) | 2643 if ((ip->ip_off & htons(IP_DF)) != 0) |
2644 ena_tx_ctx->df = 1; 2645 break; 2646 case ETHERTYPE_IPV6: 2647 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV6; 2648 2649 default: 2650 break; 2651 } --- 1271 unchanged lines hidden --- | 2644 ena_tx_ctx->df = 1; 2645 break; 2646 case ETHERTYPE_IPV6: 2647 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV6; 2648 2649 default: 2650 break; 2651 } --- 1271 unchanged lines hidden --- |