All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the gfs2 tree with the net tree
@ 2017-03-26 23:52 Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2017-03-26 23:52 UTC (permalink / raw)
  To: Steven Whitehouse, Bob Peterson, David Miller, Networking
  Cc: linux-next, linux-kernel, Hayes Wang

Hi all,

Today's linux-next merge of the gfs2 tree got a conflict in:

  drivers/net/usb/r8152.c

between commit:

  2f25abe6bac5 ("r8152: prevent the driver from transmitting packets with carrier off")

from the net tree and commit:

  ce594e9824ab ("r8152: simply the arguments")

from the gfs2 and net-next trees.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/net/usb/r8152.c
index c34df33c6d72,3262a326aae6..000000000000
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@@ -3698,27 -3697,19 +3705,29 @@@ static int rtl8152_resume(struct usb_in
  	if (!test_bit(SELECTIVE_SUSPEND, &tp->flags)) {
  		tp->rtl_ops.init(tp);
  		queue_delayed_work(system_long_wq, &tp->hw_phy_work, 0);
- 		netif_device_attach(tp->netdev);
+ 		netif_device_attach(netdev);
  	}
  
- 	if (netif_running(tp->netdev) && tp->netdev->flags & IFF_UP) {
+ 	if (netif_running(netdev) && netdev->flags & IFF_UP) {
  		if (test_bit(SELECTIVE_SUSPEND, &tp->flags)) {
+ 			struct napi_struct *napi = &tp->napi;
+ 
  			tp->rtl_ops.autosuspend_en(tp, false);
- 			napi_disable(&tp->napi);
+ 			napi_disable(napi);
  			set_bit(WORK_ENABLE, &tp->flags);
 -			if (netif_carrier_ok(netdev))
 -				rtl_start_rx(tp);
 +
- 			if (netif_carrier_ok(tp->netdev)) {
++			if (netif_carrier_ok(netdev)) {
 +				if (rtl8152_get_speed(tp) & LINK_STATUS) {
 +					rtl_start_rx(tp);
 +				} else {
- 					netif_carrier_off(tp->netdev);
++					netif_carrier_off(netdev);
 +					tp->rtl_ops.disable(tp);
- 					netif_info(tp, link, tp->netdev,
++					netif_info(tp, link, netdev,
 +						   "linking down\n");
 +				}
 +			}
 +
- 			napi_enable(&tp->napi);
+ 			napi_enable(napi);
  			clear_bit(SELECTIVE_SUSPEND, &tp->flags);
  			smp_mb__after_atomic();
  			if (!list_empty(&tp->rx_done))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* linux-next: manual merge of the gfs2 tree with the net tree
@ 2017-03-26 23:56 Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2017-03-26 23:56 UTC (permalink / raw)
  To: Steven Whitehouse, Bob Peterson, David Miller, Networking
  Cc: linux-next, linux-kernel, Florian Westphal, Alexey Kodanev

Hi all,

Today's linux-next merge of the gfs2 tree got a conflict in:

  net/core/secure_seq.c

between commit:

  28ee1b746f49 ("secure_seq: downgrade to per-host timestamp offsets")

from the net tree and commit:

  a30aad50c26c ("tcp: rename *_sequence_number() to *_seq_and_tsoff()")

from the gfs2 and net-next trees.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc net/core/secure_seq.c
index d28da7d363f1,fb87e78a2cc7..000000000000
--- a/net/core/secure_seq.c
+++ b/net/core/secure_seq.c
@@@ -47,25 -45,8 +47,25 @@@ static u32 seq_scale(u32 seq
  #endif
  
  #if IS_ENABLED(CONFIG_IPV6)
 +static u32 secure_tcpv6_ts_off(const __be32 *saddr, const __be32 *daddr)
 +{
 +	const struct {
 +		struct in6_addr saddr;
 +		struct in6_addr daddr;
 +	} __aligned(SIPHASH_ALIGNMENT) combined = {
 +		.saddr = *(struct in6_addr *)saddr,
 +		.daddr = *(struct in6_addr *)daddr,
 +	};
 +
 +	if (sysctl_tcp_timestamps != 1)
 +		return 0;
 +
 +	return siphash(&combined, offsetofend(typeof(combined), daddr),
 +		       &ts_secret);
 +}
 +
- u32 secure_tcpv6_sequence_number(const __be32 *saddr, const __be32 *daddr,
- 				 __be16 sport, __be16 dport, u32 *tsoff)
+ u32 secure_tcpv6_seq_and_tsoff(const __be32 *saddr, const __be32 *daddr,
+ 			       __be16 sport, __be16 dport, u32 *tsoff)
  {
  	const struct {
  		struct in6_addr saddr;
@@@ -82,10 -63,10 +82,10 @@@
  	net_secret_init();
  	hash = siphash(&combined, offsetofend(typeof(combined), dport),
  		       &net_secret);
 -	*tsoff = sysctl_tcp_timestamps == 1 ? (hash >> 32) : 0;
 +	*tsoff = secure_tcpv6_ts_off(saddr, daddr);
  	return seq_scale(hash);
  }
- EXPORT_SYMBOL(secure_tcpv6_sequence_number);
+ EXPORT_SYMBOL(secure_tcpv6_seq_and_tsoff);
  
  u32 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr,
  			       __be16 dport)
@@@ -107,16 -88,8 +107,16 @@@ EXPORT_SYMBOL(secure_ipv6_port_ephemera
  #endif
  
  #ifdef CONFIG_INET
 +static u32 secure_tcp_ts_off(__be32 saddr, __be32 daddr)
 +{
 +	if (sysctl_tcp_timestamps != 1)
 +		return 0;
 +
 +	return siphash_2u32((__force u32)saddr, (__force u32)daddr,
 +			    &ts_secret);
 +}
  
- /* secure_tcp_sequence_number(a, b, 0, d) == secure_ipv4_port_ephemeral(a, b, d),
+ /* secure_tcp_seq_and_tsoff(a, b, 0, d) == secure_ipv4_port_ephemeral(a, b, d),
   * but fortunately, `sport' cannot be 0 in any circumstances. If this changes,
   * it would be easy enough to have the former function use siphash_4u32, passing
   * the arguments as separate u32.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-26 23:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-26 23:52 linux-next: manual merge of the gfs2 tree with the net tree Stephen Rothwell
2017-03-26 23:56 Stephen Rothwell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.