forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
In netdevice.h we removed the structure in net-next that is being changes in 'net'. In macsec.c and rtnetlink.c we have overlaps between fixes in 'net' and the u64 attribute changes in 'net-next'. The mlx5 conflicts have to do with vxlan support dependencies. Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
147 changed files
with
1,271 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (C) 2016 Synopsys, Inc. (www.synopsys.com) | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef _ASM_ARC_MMZONE_H | ||
#define _ASM_ARC_MMZONE_H | ||
|
||
#ifdef CONFIG_DISCONTIGMEM | ||
|
||
extern struct pglist_data node_data[]; | ||
#define NODE_DATA(nid) (&node_data[nid]) | ||
|
||
static inline int pfn_to_nid(unsigned long pfn) | ||
{ | ||
int is_end_low = 1; | ||
|
||
if (IS_ENABLED(CONFIG_ARC_HAS_PAE40)) | ||
is_end_low = pfn <= virt_to_pfn(0xFFFFFFFFUL); | ||
|
||
/* | ||
* node 0: lowmem: 0x8000_0000 to 0xFFFF_FFFF | ||
* node 1: HIGHMEM w/o PAE40: 0x0 to 0x7FFF_FFFF | ||
* HIGHMEM with PAE40: 0x1_0000_0000 to ... | ||
*/ | ||
if (pfn >= ARCH_PFN_OFFSET && is_end_low) | ||
return 0; | ||
|
||
return 1; | ||
} | ||
|
||
static inline int pfn_valid(unsigned long pfn) | ||
{ | ||
int nid = pfn_to_nid(pfn); | ||
|
||
return (pfn <= node_end_pfn(nid)); | ||
} | ||
#endif /* CONFIG_DISCONTIGMEM */ | ||
|
||
#endif |
Oops, something went wrong.