oce_if.c (356090) | oce_if.c (362511) |
---|---|
1/*- 2 * Copyright (C) 2013 Emulex 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 22 unchanged lines hidden (view full) --- 31 * Contact Information: 32 * freebsd-drivers@emulex.com 33 * 34 * Emulex 35 * 3333 Susan Street 36 * Costa Mesa, CA 92626 37 */ 38 | 1/*- 2 * Copyright (C) 2013 Emulex 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 22 unchanged lines hidden (view full) --- 31 * Contact Information: 32 * freebsd-drivers@emulex.com 33 * 34 * Emulex 35 * 3333 Susan Street 36 * Costa Mesa, CA 92626 37 */ 38 |
39/* $FreeBSD: stable/11/sys/dev/oce/oce_if.c 356090 2019-12-26 16:58:11Z markj $ */ | 39/* $FreeBSD: stable/11/sys/dev/oce/oce_if.c 362511 2020-06-22 21:28:51Z freqlabs $ */ |
40 41#include "opt_inet6.h" 42#include "opt_inet.h" 43 44#include "oce_if.h" 45#include "oce_user.h" 46 47#define is_tso_pkt(m) (m->m_pkthdr.csum_flags & CSUM_TSO) --- 481 unchanged lines hidden (view full) --- 529 u = ifr->ifr_reqcap ^ ifp->if_capenable; 530 531 if (u & IFCAP_TXCSUM) { 532 ifp->if_capenable ^= IFCAP_TXCSUM; 533 ifp->if_hwassist ^= (CSUM_TCP | CSUM_UDP | CSUM_IP); 534 535 if (IFCAP_TSO & ifp->if_capenable && 536 !(IFCAP_TXCSUM & ifp->if_capenable)) { | 40 41#include "opt_inet6.h" 42#include "opt_inet.h" 43 44#include "oce_if.h" 45#include "oce_user.h" 46 47#define is_tso_pkt(m) (m->m_pkthdr.csum_flags & CSUM_TSO) --- 481 unchanged lines hidden (view full) --- 529 u = ifr->ifr_reqcap ^ ifp->if_capenable; 530 531 if (u & IFCAP_TXCSUM) { 532 ifp->if_capenable ^= IFCAP_TXCSUM; 533 ifp->if_hwassist ^= (CSUM_TCP | CSUM_UDP | CSUM_IP); 534 535 if (IFCAP_TSO & ifp->if_capenable && 536 !(IFCAP_TXCSUM & ifp->if_capenable)) { |
537 u &= ~IFCAP_TSO; |
|
537 ifp->if_capenable &= ~IFCAP_TSO; 538 ifp->if_hwassist &= ~CSUM_TSO; 539 if_printf(ifp, 540 "TSO disabled due to -txcsum.\n"); 541 } 542 } 543 544 if (u & IFCAP_RXCSUM) --- 2488 unchanged lines hidden --- | 538 ifp->if_capenable &= ~IFCAP_TSO; 539 ifp->if_hwassist &= ~CSUM_TSO; 540 if_printf(ifp, 541 "TSO disabled due to -txcsum.\n"); 542 } 543 } 544 545 if (u & IFCAP_RXCSUM) --- 2488 unchanged lines hidden --- |